We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c7cf77 commit 3339d7eCopy full SHA for 3339d7e
ethereum/tools/tester.py
@@ -291,6 +291,9 @@ def snapshot(self):
291
def revert(self, snapshot):
292
state_snapshot, txcount, blknum = snapshot
293
assert blknum == self.block.number, "Cannot revert beyond block boundaries!"
294
+ self.block = self.block.copy(
295
+ transactions=self.block.transactions[:txcount]
296
+ )
297
self.block.transactions = self.block.transactions[:txcount]
298
self.head_state.revert(state_snapshot)
299
0 commit comments