Skip to content

Commit

Permalink
Fix preState diffMode logic (paradigmxyz#4014)
Browse files Browse the repository at this point in the history
  • Loading branch information
PlamenHristov authored Jul 31, 2023
1 parent 27c65d2 commit e560b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/revm/revm-inspectors/src/tracing/builder/geth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl GethTraceBuilder {
let account_diffs: Vec<_> =
state.into_iter().map(|(addr, acc)| (*addr, &acc.info)).collect();

if prestate_config.is_diff_mode() {
if !prestate_config.is_diff_mode() {
let mut prestate = PreStateMode::default();
for (addr, _) in account_diffs {
let db_acc = db.basic(addr)?.unwrap_or_default();
Expand Down

0 comments on commit e560b06

Please sign in to comment.