diff --git a/system-contracts/contracts/EvmEmulator.yul b/system-contracts/contracts/EvmEmulator.yul index 774a4af69..e724100a6 100644 --- a/system-contracts/contracts/EvmEmulator.yul +++ b/system-contracts/contracts/EvmEmulator.yul @@ -391,12 +391,14 @@ object "EvmEmulator" { } function getRawCodeHash(addr) -> hash { + // function getRawCodeHash(address _address) mstore(0, 0x4DE2E46800000000000000000000000000000000000000000000000000000000) mstore(4, addr) hash := fetchFromSystemContract(ACCOUNT_CODE_STORAGE_SYSTEM_CONTRACT(), 36) } function getEvmExtcodehash(addr) -> evmCodeHash { + // function evmCodeHash(address _address) mstore(0, 0x54A3314700000000000000000000000000000000000000000000000000000000) mstore(4, addr) evmCodeHash := fetchFromSystemContract(DEPLOYER_SYSTEM_CONTRACT(), 36) @@ -3309,12 +3311,14 @@ object "EvmEmulator" { } function getRawCodeHash(addr) -> hash { + // function getRawCodeHash(address _address) mstore(0, 0x4DE2E46800000000000000000000000000000000000000000000000000000000) mstore(4, addr) hash := fetchFromSystemContract(ACCOUNT_CODE_STORAGE_SYSTEM_CONTRACT(), 36) } function getEvmExtcodehash(addr) -> evmCodeHash { + // function evmCodeHash(address _address) mstore(0, 0x54A3314700000000000000000000000000000000000000000000000000000000) mstore(4, addr) evmCodeHash := fetchFromSystemContract(DEPLOYER_SYSTEM_CONTRACT(), 36) diff --git a/system-contracts/contracts/EvmGasManager.yul b/system-contracts/contracts/EvmGasManager.yul index 00d236250..56fb18b69 100644 --- a/system-contracts/contracts/EvmGasManager.yul +++ b/system-contracts/contracts/EvmGasManager.yul @@ -51,6 +51,7 @@ object "EvmGasManager" { } function $llvm_AlwaysInline_llvm$__getRawSenderCodeHash() -> hash { + // function getRawCodeHash(address _address) mstore(0, 0x4DE2E46800000000000000000000000000000000000000000000000000000000) mstore(4, caller()) diff --git a/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul b/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul index 6100ffd5a..e6efa7316 100644 --- a/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul +++ b/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul @@ -331,12 +331,14 @@ function getRawNonce(addr) -> nonce { } function getRawCodeHash(addr) -> hash { + // function getRawCodeHash(address _address) mstore(0, 0x4DE2E46800000000000000000000000000000000000000000000000000000000) mstore(4, addr) hash := fetchFromSystemContract(ACCOUNT_CODE_STORAGE_SYSTEM_CONTRACT(), 36) } function getEvmExtcodehash(addr) -> evmCodeHash { + // function evmCodeHash(address _address) mstore(0, 0x54A3314700000000000000000000000000000000000000000000000000000000) mstore(4, addr) evmCodeHash := fetchFromSystemContract(DEPLOYER_SYSTEM_CONTRACT(), 36)