From 809e5e38455b04b13d329c68930e660bb9c639a0 Mon Sep 17 00:00:00 2001 From: Vladislav Volosnikov Date: Mon, 30 Dec 2024 16:49:53 +0100 Subject: [PATCH] Fix issues with access errors in EvmGasManager --- system-contracts/contracts/EvmGasManager.yul | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system-contracts/contracts/EvmGasManager.yul b/system-contracts/contracts/EvmGasManager.yul index bf274eae0..00d236250 100644 --- a/system-contracts/contracts/EvmGasManager.yul +++ b/system-contracts/contracts/EvmGasManager.yul @@ -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 @@ -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