Skip to content

Commit f147cb1

Browse files
committed
chore: remove dbug
1 parent 75b72d3 commit f147cb1

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

evm/src/executor/backend/mod.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -873,15 +873,9 @@ impl DatabaseExt for Backend {
873873
) -> Option<JournaledState> {
874874
trace!(?id, "revert snapshot");
875875
if let Some(mut snapshot) = self.inner.snapshots.remove(id) {
876-
// need to check whether DSTest's `failed` variable is set to `true` or if there's a
877-
// global failure which means an error occurred either during the snapshot
876+
// need to check whether there's a global failure which means an error occurred either during the snapshot
878877
// or even before
879-
if self
880-
.test_contract_address()
881-
.map(|addr| self.is_failed_test_contract_state(addr, current_state))
882-
.unwrap_or_default() ||
883-
self.is_global_failure()
884-
{
878+
if self.is_global_failure() {
885879
self.inner.has_snapshot_failure.store(true, Ordering::Relaxed);
886880
}
887881

testdata/repros/Issue3792.t.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ contract TestSetup is Config, DSTest {
1919
uint256 snapshotId = vm.snapshot();
2020

2121
vm.prank(test);
22-
assertTrue(false, "should have reverted");
2322

2423
vm.revertTo(snapshotId);
2524
}

0 commit comments

Comments
 (0)