Skip to content

Commit

Permalink
feat: use contract.creation.block to look up the start of contract ev…
Browse files Browse the repository at this point in the history
…ent range
  • Loading branch information
banteg committed Apr 12, 2024
1 parent 456887b commit 2a2fd72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ape/contracts/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def range(
pass

if contract:
start_block = contract.receipt.block_number
start_block = contract.creation.block

stop_block = start_or_stop
elif start_or_stop is not None and stop is not None:
Expand Down

0 comments on commit 2a2fd72

Please sign in to comment.