diff --git a/system-contracts/contracts/EvmEmulator.yul b/system-contracts/contracts/EvmEmulator.yul index 8855aec73..df75310c2 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 5 MB is close to 53M EVM gas function MAX_POSSIBLE_MEM_LEN() -> max { - max := 0x400000 // 4MB + max := 0x500000 // 5MB } function MAX_UINT() -> max_uint { @@ -3277,9 +3277,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 5 MB is close to 53M EVM gas function MAX_POSSIBLE_MEM_LEN() -> max { - max := 0x400000 // 4MB + max := 0x500000 // 5MB } function MAX_UINT() -> max_uint { diff --git a/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul b/system-contracts/evm-emulator/EvmEmulatorFunctions.template.yul index 72b0895cf..0617e5f4f 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 5 MB is close to 53M EVM gas function MAX_POSSIBLE_MEM_LEN() -> max { - max := 0x400000 // 4MB + max := 0x500000 // 5MB } function MAX_UINT() -> max_uint {