Skip to content

Commit 8725e17

Browse files
authored
chisel/runner: skip redundant call_raw when commit=true (#11258)
1 parent f50769f commit 8725e17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/chisel/src/runner.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ impl ChiselRunner {
184184
cheatcodes.fs_commit = !cheatcodes.fs_commit;
185185
}
186186

187-
res = self.executor.call_raw(from, to, calldata.clone(), value)?;
187+
if !commit {
188+
res = self.executor.call_raw(from, to, calldata.clone(), value)?;
189+
}
188190
}
189191

190192
if commit {

0 commit comments

Comments
 (0)