Skip to content

Commit

Permalink
fix: use start block as stop block if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Sep 11, 2023
1 parent cc98819 commit 413eabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ape/managers/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def range(
query = BlockQuery(
columns=list(self.head.__fields__), # TODO: fetch the block fields from EcosystemAPI
start_block=start,
stop_block=stop - 1,
stop_block=max(start, stop - 1),
step=step,
)

Expand Down

0 comments on commit 413eabb

Please sign in to comment.