From 2fce5a2f3da2a07f42572b2dbd00cc978bbc0416 Mon Sep 17 00:00:00 2001 From: Vladislav Volosnikov Date: Fri, 6 Dec 2024 12:36:47 +0100 Subject: [PATCH] Increase to 12 MB --- system-contracts/contracts/EvmEmulator.yul | 8 ++++---- .../evm-emulator/EvmEmulatorFunctions.template.yul | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/system-contracts/contracts/EvmEmulator.yul b/system-contracts/contracts/EvmEmulator.yul index df75310c2e..a186d15cee 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 5 MB is close to 53M EVM gas + // The cost to increase the memory to 12 MB is close to 277M EVM gas function MAX_POSSIBLE_MEM_LEN() -> max { - max := 0x500000 // 5MB + max := 0xC00000 // 12MB } 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 5 MB is close to 53M EVM gas + // The cost to increase the memory to 12 MB is close to 277M EVM gas function MAX_POSSIBLE_MEM_LEN() -> max { - max := 0x500000 // 5MB + 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 0617e5f4f6..30afd85e00 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 5 MB is close to 53M EVM gas +// The cost to increase the memory to 12 MB is close to 277M EVM gas function MAX_POSSIBLE_MEM_LEN() -> max { - max := 0x500000 // 5MB + max := 0xC00000 // 12MB } function MAX_UINT() -> max_uint {