Skip to content

Commit 3250991

Browse files
authored
fix: disable balance check (#54)
1 parent 4e3c67e commit 3250991

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ reth-ethereum-consensus = { git = "https://github.com/paradigmxyz/reth", tag = "
9595
# revm
9696
revm = { version = "22.0.1", features = [
9797
"std",
98+
"optional_balance_check"
9899
], default-features = false }
99100
revm-primitives = { version = "18.0.0", features = [
100101
"std",

crates/client-executor/src/io.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ impl Primitives for EthPrimitives {
129129
block_env.basefee = 0;
130130
block_env.difficulty = difficulty;
131131
cfg_env.disable_nonce_check = true;
132+
cfg_env.disable_balance_check = true;
132133

133134
let evm = Context::mainnet()
134135
.with_db(db)
@@ -178,6 +179,7 @@ impl Primitives for reth_optimism_primitives::OpPrimitives {
178179
block_env.basefee = 0;
179180
block_env.difficulty = difficulty;
180181
cfg_env.disable_nonce_check = true;
182+
cfg_env.disable_balance_check = true;
181183

182184
let evm = op_revm::OpContext::op()
183185
.with_db(db)

0 commit comments

Comments
 (0)