Skip to content

Commit

Permalink
fix: tracing_options_diff
Browse files Browse the repository at this point in the history
  • Loading branch information
0xaatif committed May 15, 2024
1 parent 99c196f commit 4883f3b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions leader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ use alloy::{
rpc::types::{
eth::{EIP1186StorageProof as StorageProof, Transaction},
trace::geth::{
AccountState, DiffMode, GethDebugBuiltInTracerType, GethDebugTracerType,
GethDebugTracingOptions, GethTrace, PreStateFrame, PreStateMode,
AccountState, DiffMode, GethDebugBuiltInTracerType, GethDebugTracerConfig,
GethDebugTracerType, GethDebugTracingOptions, GethTrace, PreStateConfig, PreStateFrame,
PreStateMode,
},
},
};
Expand Down Expand Up @@ -99,7 +100,13 @@ fn tracing_options_diff() -> GethDebugTracingOptions {
tracer: Some(GethDebugTracerType::BuiltInTracer(
GethDebugBuiltInTracerType::PreStateTracer,
)),
..GethDebugTracingOptions::default()
tracer_config: GethDebugTracerConfig(
serde_json::to_value(PreStateConfig {
diff_mode: Some(true),
})
.unwrap(),
),
..Default::default()
}
}

Expand Down

0 comments on commit 4883f3b

Please sign in to comment.