foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.33k stars 1.76k forks source link

chore: avoid unnecessary `mut` #9238

Closed Karrq closed 3 weeks ago

Karrq commented 3 weeks ago

Motivation

This small section seems to have some leftover unnecessary mut, even tho no field of transaction is changed. I believe this was not removed after moving ScriptSequence

Solution

Cleanup mut qualifier and related tx_mut() method usage in favor of tx()