Skip to content

Commit 0a16e13

Browse files
authored
chore(deps): bump revm 2.0 (#3163)
1 parent 631007b commit 0a16e13

File tree

8 files changed

+17
-40
lines changed

8 files changed

+17
-40
lines changed

Cargo.lock

Lines changed: 10 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ debug = 0
6666

6767
[patch.crates-io]
6868
#revm = { path = "../revm/crates/revm" }
69-
revm = { git = "https://github.com/bluealloy/revm" }
69+
#revm = { git = "https://github.com/bluealloy/revm" }

anvil/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ impl NodeConfig {
651651
cfg: CfgEnv {
652652
spec_id: self.get_hardfork().into(),
653653
chain_id: self.get_chain_id().into(),
654-
limit_contract_code_size: usize::MAX,
654+
limit_contract_code_size: Some(usize::MAX),
655655
..Default::default()
656656
},
657657
block: BlockEnv {

evm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ once_cell = "1.13"
3737
# EVM
3838
bytes = "1.1.0"
3939
hashbrown = { version = "0.12", features = ["serde"] }
40-
revm = { version = "1.9", default-features = false, features = ["std", "k256", "with-serde", "memory_limit"] }
40+
revm = { version = "2.0", default-features = false, features = ["std", "k256", "with-serde", "memory_limit"] }
4141

4242
# Fuzzer
4343
proptest = "1.0.0"

evm/src/executor/fork/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ where
5252
cfg: CfgEnv {
5353
chain_id: override_chain_id.unwrap_or(rpc_chain_id.as_u64()).into(),
5454
memory_limit,
55-
limit_contract_code_size: usize::MAX,
55+
limit_contract_code_size: Some(usize::MAX),
5656
..Default::default()
5757
},
5858
block: BlockEnv {

evm/src/executor/opts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl EvmOpts {
105105
chain_id: self.env.chain_id.unwrap_or(foundry_common::DEV_CHAIN_ID).into(),
106106
spec_id: SpecId::LONDON,
107107
perf_all_precompiles_have_balance: false,
108-
limit_contract_code_size: usize::MAX,
108+
limit_contract_code_size: Some(usize::MAX),
109109
memory_limit: self.memory_limit,
110110
..Default::default()
111111
},

evm/test-data/storage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"meta":{"cfg_env":{"chain_id":"0x1","spec_id":"LATEST","perf_all_precompiles_have_balance":false,"memory_limit":4294967295, "perf_analyse_created_bytecodes":true, "limit_contract_code_size": 24576},"block_env":{"number":"0xdc42b8","coinbase":"0x0000000000000000000000000000000000000000","timestamp":"0x1","difficulty":"0x0","basefee":"0x0","gas_limit":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"},"hosts":["mainnet.infura.io"]},"accounts":{"0x63091244180ae240c87d1f528f5f269134cb07b3":{"balance":"0x0","code_hash":"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","code":null,"nonce":0}},"storage":{"0x63091244180ae240c87d1f528f5f269134cb07b3":{"0x0":"0x0","0x1":"0x0","0x2":"0x0","0x3":"0x0","0x4":"0x0","0x5":"0x0","0x6":"0x0","0x7":"0x0","0x8":"0x0","0x9":"0x0"}},"block_hashes":{}}
1+
{"meta":{"cfg_env":{"chain_id":"0x1","spec_id":"LATEST","perf_all_precompiles_have_balance":false,"memory_limit":4294967295, "perf_analyse_created_bytecodes":"Analyse", "limit_contract_code_size": 24576},"block_env":{"number":"0xdc42b8","coinbase":"0x0000000000000000000000000000000000000000","timestamp":"0x1","difficulty":"0x0","basefee":"0x0","gas_limit":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"},"hosts":["mainnet.infura.io"]},"accounts":{"0x63091244180ae240c87d1f528f5f269134cb07b3":{"balance":"0x0","code_hash":"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","code":null,"nonce":0}},"storage":{"0x63091244180ae240c87d1f528f5f269134cb07b3":{"0x0":"0x0","0x1":"0x0","0x2":"0x0","0x3":"0x0","0x4":"0x0","0x5":"0x0","0x6":"0x0","0x7":"0x0","0x8":"0x0","0x9":"0x0"}},"block_hashes":{}}

ui/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ eyre = "0.6.5"
1414
hex = "0.4.3"
1515
ethers = { git = "https://github.com/gakonst/ethers-rs" }
1616
forge = { path = "../forge" }
17-
revm = { version = "1.9", features = ["std", "k256", "with-serde"] }
17+
revm = { version = "2.0", features = ["std", "k256", "with-serde"] }

0 commit comments

Comments
 (0)