Skip to content

Commit

Permalink
chore: avoid unnecessary mut (#9238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karrq authored Oct 31, 2024
1 parent 736a330 commit 17e0981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/script/src/simulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ impl PreSimulationState {
// Executes all transactions from the different forks concurrently.
let futs = transactions
.into_iter()
.map(|mut transaction| async {
.map(|transaction| async {
let mut runner = runners.get(&transaction.rpc).expect("invalid rpc url").write();

let tx = transaction.tx_mut();
let tx = transaction.tx();
let to = if let Some(TxKind::Call(to)) = tx.to() { Some(to) } else { None };
let result = runner
.simulate(
Expand Down

0 comments on commit 17e0981

Please sign in to comment.