Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(EVM): Increase max allowed memory (2) #1124

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading