Skip to content

Commit

Permalink
fix(EVM): Fix access errors in EvmGasManager (L-02, L-06) (#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov authored Dec 30, 2024
1 parent f9824ea commit 8349c91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions system-contracts/contracts/EvmGasManager.yul
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ object "EvmGasManager" {
let notSystemCall := iszero(and(callFlags, 2))

if notSystemCall {
// error CallerMustBeEvmContract()
mstore(0, 0xBE4BF9E400000000000000000000000000000000000000000000000000000000)
revert(0, 32)
// error SystemCallFlagRequired()
mstore(0, 0x71C3DA0100000000000000000000000000000000000000000000000000000000)
revert(0, 4)
}

// SELFDESTRUCT is not supported, so it is ok to cache here
Expand All @@ -86,7 +86,7 @@ object "EvmGasManager" {
if iszero(isEVM) {
// error CallerMustBeEvmContract()
mstore(0, 0xBE4BF9E400000000000000000000000000000000000000000000000000000000)
revert(0, 32)
revert(0, 4)
}

// we will not cache contract if it is being constructed
Expand Down

0 comments on commit 8349c91

Please sign in to comment.