We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b51055 commit 67bd90fCopy full SHA for 67bd90f
cli/src/cmd/forge/script/runner.rs
@@ -96,6 +96,12 @@ impl<DB: DatabaseRef> Runner<DB> {
96
.extend(setup_traces.map(|traces| (TraceKind::Setup, traces)).into_iter());
97
logs.extend_from_slice(&setup_logs);
98
99
+ // We call the `setUp()` function with self.sender, and if there haven't been
100
+ // any broadcasts, then the EVM cheatcode module hasn't corrected the nonce
101
+ if transactions.is_none() || transactions.as_ref().unwrap().is_empty() {
102
+ self.executor.set_nonce(self.sender, sender_nonce.as_u64());
103
+ }
104
+
105
(
106
!reverted,
107
gas,
0 commit comments