From ab14ffbcaadd1c5cf628b0cee12117b8ea29d86f Mon Sep 17 00:00:00 2001 From: Mate Soos Date: Mon, 23 Dec 2024 14:43:27 +0100 Subject: [PATCH] Adding a note about prank and delegatecall --- src/EVM.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EVM.hs b/src/EVM.hs index d0549501d..55b43b1b2 100644 --- a/src/EVM.hs +++ b/src/EVM.hs @@ -952,6 +952,8 @@ exec1 = do case gasTryFrom xGas of Left _ -> vmError IllegalOverflow Right gas -> + -- NOTE: we don't update overrideCaller in this case because + -- forge-std doesn't. see: https://github.com/foundry-rs/foundry/pull/8863 delegateCall this gas xTo' self (Lit 0) xInOffset xInSize xOutOffset xOutSize xs $ \_ -> touchAccount self _ -> underrun