You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PUSH0 (0x5F):
- Pushes 0 onto the stack for 2 gas (vs PUSH1 0x00 at 3 gas)
- Added in Shanghai upgrade, emitted by modern Solidity compilers
- Trivial implementation, significant gas savings at scale
KECCAK256 (0x20):
- Computes Keccak-256 hash of a memory region
- Static gas: 30 + dynamic: 6 per 32-byte word + memory expansion
- Uses ex_keccak NIF library (Ethereum uses Keccak, NOT SHA3-256)
- Handles empty data, partial words, and zero-padding correctly
Also fixes a bug where dynamic out-of-gas inside opcode handlers
would double-wrap the error status via MachineState.halt.
11 new tests, 110 total (3 doctests + 107 tests), 0 failures.
0 commit comments