Skip to content

Commit

Permalink
fix(EVM): Increase max allowed memory (2) (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Dec 10, 2024
1 parent 1727724 commit 949a3b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions system-contracts/contracts/EvmEmulator.yul
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 949a3b6

Please sign in to comment.