Skip to content
Merged
Prev Previous commit
test: bump snekmate memory limit
  • Loading branch information
DaniPopes committed Nov 16, 2023
commit 4d86d53ef46bd65872989d3969a29e3ef7174565
2 changes: 1 addition & 1 deletion crates/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@ impl Default for Config {
block_difficulty: 0,
block_prevrandao: Default::default(),
block_gas_limit: None,
memory_limit: 2u64.pow(25),
memory_limit: 1 << 25, // 32MiB = 33554432 bytes
eth_rpc_url: None,
eth_rpc_jwt: None,
etherscan_api_key: None,
Expand Down
6 changes: 5 additions & 1 deletion crates/forge/tests/cli/ext_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ forgetest_external!(
// `run: pnpm --version` is ok, `Command::new("pnpm")` isn't. Good job Windows.
#[cfg_attr(windows, ignore = "Windows cannot find installed programs")]
snekmate,
"pcaversaccio/snekmate"
"pcaversaccio/snekmate",
// 64MiB memory limit:
// - https://github.com/foundry-rs/foundry/pull/6281
// - https://github.com/bluealloy/revm/issues/865
&["--memory-limit", &(1u64 << 26).to_string()]
);

// Forking tests
Expand Down