Call depth is inconsistent in Inspector's call
and call_end
method
#1018
Labels
bug
Something isn't working
call
and call_end
method
#1018
I am looking at the main branch commit b434308.
The call depth (
context.journaled_state.depth()
) is different for the inspector's hookcall
andcall_end
regarding the same call.For instance, suppose there is a contract-invoking transaction which does not contain any subcalls. The
call
andcall_end
hook of inspector will only be called each once for the top-level call.When
call
hook is called, thecontext.journaled_state.depth()
is0
, which is expected.However, when
call_end
hook is called, thecontext.journaled_state.depth()
is1
. This behavior is different from previous versions of revm. In revmv3.5.0
, thecontext.journaled_state.depth()
incall_end
is also0
.This behavior difference is likely a regression issue introduced in the recent redesign of the evm after
v3.5.0
.Is this change of behavior intended?
The text was updated successfully, but these errors were encountered: