diff --git a/system-contracts/contracts/EvmEmulator.yul b/system-contracts/contracts/EvmEmulator.yul index 4da1e794f..625231950 100644 --- a/system-contracts/contracts/EvmEmulator.yul +++ b/system-contracts/contracts/EvmEmulator.yul @@ -166,9 +166,9 @@ object "EvmEmulator" { } // Used to simplify gas calculations for memory expansion. - // The cost to increase the memory to 4 MB is close to 30M gas + // The cost to increase the memory to 12 MB is close to 277M EVM gas function MAX_POSSIBLE_MEM_LEN() -> max { - max := 0x400000 // 4MB + max := 0xC00000 // 12MB } function MAX_UINT() -> max_uint { @@ -3278,9 +3278,9 @@ object "EvmEmulator" { } // Used to simplify gas calculations for memory expansion. - // The cost to increase the memory to 4 MB is close to 30M gas + // The cost to increase the memory to 12 MB is close to 277M EVM gas function MAX_POSSIBLE_MEM_LEN() -> max { - max := 0x400000 // 4MB + max := 0xC00000 // 12MB } function MAX_UINT() -> max_uint { diff --git a/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul b/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul index 011f7b13a..04ce45ea8 100644 --- a/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul +++ b/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul @@ -104,9 +104,9 @@ function MEM_OFFSET() -> offset { } // Used to simplify gas calculations for memory expansion. -// The cost to increase the memory to 4 MB is close to 30M gas +// The cost to increase the memory to 12 MB is close to 277M EVM gas function MAX_POSSIBLE_MEM_LEN() -> max { - max := 0x400000 // 4MB + max := 0xC00000 // 12MB } function MAX_UINT() -> max_uint {