Skip to content

Conversation

@smiasojed
Copy link
Contributor

@smiasojed smiasojed commented Jan 27, 2026

Fixes EXTCODESIZE and EXTCODEHASH opcodes for mocked addresses.
Previously, these opcodes did not check the mock handler, causing them to
return values indicating no code exists at mocked addresses. Fixed by adding
mocked_code method to MockHandler trait to provide dummy bytecode.

@smiasojed smiasojed added the T7-smart_contracts This PR/Issue is related to smart contracts. label Jan 27, 2026
@smiasojed smiasojed changed the title Fix mock calls in pallet-revive [pallet-revive] Add mocked_code support to MockHandler trait Jan 27, 2026
@smiasojed smiasojed changed the title [pallet-revive] Add mocked_code support to MockHandler trait [pallet-revive] Fix EXTCODESIZE and EXTCODEHASH for mocked addresses Jan 27, 2026
@smiasojed smiasojed marked this pull request as ready for review January 27, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T7-smart_contracts This PR/Issue is related to smart contracts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants