We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7970f94 + 3339d7e commit 3d5ec14Copy full SHA for 3d5ec14
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