We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbc689d commit a5a337eCopy full SHA for a5a337e
1 file changed
evm_trace/vmtrace.py
@@ -142,7 +142,8 @@ def to_trace_frames(
142
if op.op in ["CALL", "DELEGATECALL", "STATICCALL"]:
143
call_address_from_stack = stack.values[-2]
144
# Evm natively discards dirty upper bits during CALL
145
- if len(call_address_from_stack) > 20:
+ # NOTE: `isinstance` check to satisfy mypy
146
+ if isinstance(call_address_from_stack, bytes) and len(call_address_from_stack) > 20:
147
call_address_from_stack = call_address_from_stack[-20:]
148
call_address = Address.__eth_pydantic_validate__(call_address_from_stack)
149
0 commit comments