Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit ed1fc74

Browse files
committed
Added clarification to assert in tester
1 parent 4b5fcab commit ed1fc74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/tools/tester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def snapshot(self):
180180

181181
def revert(self, snapshot):
182182
state_snapshot, txcount, blknum = snapshot
183-
assert blknum == self.block.number
183+
assert blknum == self.block.number, "Cannot revert beyond block boundaries!"
184184
self.block.transactions = self.block.transactions[:txcount]
185185
self.head_state.revert(state_snapshot)
186186

0 commit comments

Comments
 (0)