Skip to content

Commit

Permalink
Add caller opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelBilbao committed Apr 11, 2024
1 parent e0d8652 commit 650e312
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 0x33 { // OP_CALLER
sp := pushStackItem(sp, caller())

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 650e312

Please sign in to comment.