Skip to content

Commit 17e0981

Browse files
authored
chore: avoid unnecessary mut (#9238)
1 parent 736a330 commit 17e0981

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/script/src/simulate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ impl PreSimulationState {
112112
// Executes all transactions from the different forks concurrently.
113113
let futs = transactions
114114
.into_iter()
115-
.map(|mut transaction| async {
115+
.map(|transaction| async {
116116
let mut runner = runners.get(&transaction.rpc).expect("invalid rpc url").write();
117117

118-
let tx = transaction.tx_mut();
118+
let tx = transaction.tx();
119119
let to = if let Some(TxKind::Call(to)) = tx.to() { Some(to) } else { None };
120120
let result = runner
121121
.simulate(

0 commit comments

Comments
 (0)