Skip to content

Commit

Permalink
Add address opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelBilbao committed Apr 10, 2024
1 parent e0d8652 commit 862d078
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions system-contracts/contracts/EvmInterpreter.yul
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,11 @@ object "EVMInterpreter" {

evmGasLeft := chargeGas(evmGasLeft, 3)
}
case 0x30 { // OP_ADDRESS
sp := pushStackItem(sp, address())

evmGasLeft := chargeGas(evmGasLeft, 2)
}
// NOTE: We don't currently do full jumpdest validation
// (i.e. validating a jumpdest isn't in PUSH data)
case 0x56 { // OP_JUMP
Expand Down

0 comments on commit 862d078

Please sign in to comment.