Skip to content

Commit

Permalink
Add gas opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelBilbao committed Apr 11, 2024
1 parent f06437e commit a417561
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 @@ -543,6 +543,11 @@ object "EVMInterpreter" {

evmGasLeft := chargeGas(evmGasLeft, 2)
}
case 0x5A { // OP_GAS
evmGasLeft := chargeGas(evmGasLeft, 2)

sp := pushStackItem(sp, evmGasLeft)
}
case 0x5B {} // OP_JUMPDEST
case 0x5F { // OP_PUSH0
let value := 0
Expand Down

0 comments on commit a417561

Please sign in to comment.