Skip to content

Commit

Permalink
Increase max allowed memory
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Dec 5, 2024
1 parent 26232e4 commit d7e2d28
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 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 {
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 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 {
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 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 {
Expand Down

0 comments on commit d7e2d28

Please sign in to comment.