Skip to content

Commit

Permalink
fix(rpc/v0.4): align trace updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirko-von-Leipzig committed Feb 2, 2024
1 parent b28f94f commit baff307
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/rpc/src/v04/method/trace_block_transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub async fn trace_block_transactions(
let hash = header.hash;
let state = ExecutionState::trace(&db, context.chain_id, header, None);
let traces =
pathfinder_executor::trace(state, &context.cache, hash, transactions, true, true)?;
pathfinder_executor::trace(state, context.cache, hash, transactions, true, true)?;

let result = traces
.into_iter()
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc/src/v04/method/trace_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ pub async fn trace_transaction(
.map(|transaction| compose_executor_transaction(transaction, &db))
.collect::<Result<Vec<_>, _>>()?;

pathfinder_executor::trace(state, &context.cache, hash, transactions, true, true)
pathfinder_executor::trace(state, context.cache, hash, transactions, true, true)
.map_err(TraceTransactionError::from)
.and_then(|txs| {
txs.into_iter()
Expand Down

0 comments on commit baff307

Please sign in to comment.