Skip to content

Commit

Permalink
fix: move comment to right line
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Nov 28, 2023
1 parent 4ef88f9 commit 7f0032e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ape/api/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1481,12 +1481,12 @@ def assert_chain_activity():
# The next block we want is simply 1 after the last.
next_block = last.number + 1

# Use an "adjused" head, based on the required confirmations.
head = self.get_block("latest")

try:
if head.number is None or head.hash is None:
raise ProviderError("Head block has no number or hash.")
# Use an "adjused" head, based on the required confirmations.
adjusted_head = self.get_block(head.number - required_confirmations)
if adjusted_head.number is None or adjusted_head.hash is None:
raise ProviderError("Adjusted head block has no number or hash.")
Expand Down

0 comments on commit 7f0032e

Please sign in to comment.