Skip to content

Commit

Permalink
Increase to 12 MB
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Dec 6, 2024
1 parent d7e2d28 commit 2fce5a2
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 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 {
Expand Down Expand Up @@ -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 {
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 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 {
Expand Down

0 comments on commit 2fce5a2

Please sign in to comment.