Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Nov 28, 2024
1 parent 57c35d0 commit 5e72209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions system-contracts/contracts/EvmEmulator.yul
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ object "EvmEmulator" {
let zkVmGasToPass := gas() // pass all remaining gas, precompiles should not call any contracts
if lt(gasToPass, precompileCost) {
zkVmGasToPass := 0 // in EVM precompile should revert consuming all gas in that case
precompileCost := precompileCost // just in case
precompileCost := gasToPass // just in case
}

switch isStatic
Expand Down Expand Up @@ -3880,7 +3880,7 @@ object "EvmEmulator" {
let zkVmGasToPass := gas() // pass all remaining gas, precompiles should not call any contracts
if lt(gasToPass, precompileCost) {
zkVmGasToPass := 0 // in EVM precompile should revert consuming all gas in that case
precompileCost := precompileCost // just in case
precompileCost := gasToPass // just in case
}

switch isStatic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ function callPrecompile(addr, precompileCost, gasToPass, value, argsOffset, args
let zkVmGasToPass := gas() // pass all remaining gas, precompiles should not call any contracts
if lt(gasToPass, precompileCost) {
zkVmGasToPass := 0 // in EVM precompile should revert consuming all gas in that case
precompileCost := precompileCost // just in case
precompileCost := gasToPass // just in case
}

switch isStatic
Expand Down

0 comments on commit 5e72209

Please sign in to comment.