Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(EVM): Fix cross vm panic returndata logic (L-03) #1180

Merged

Conversation

0xVolosnikov
Copy link

What ❔

The INVALID opcode and other panics must mimic the behavior of revert(0,0) (so the EraVM environment will not receive unexpected returndata), but the emulator produces revert(0,32) instead, exhibiting an inconsistency.

This PR modifies panics, so now nothing will be returned if caller is not EVM.

Also made small changes to offset added overhead.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

@0xVolosnikov 0xVolosnikov merged commit 66c8e51 into evm-emulator/fixes Jan 3, 2025
19 of 21 checks passed
@0xVolosnikov 0xVolosnikov deleted the evm-emulator/fix-cross-vm-panic-returndata branch January 3, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant