Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Nov 23, 2024
1 parent 616918b commit 05e9191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sync/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def find_block_with_timestamp(node: Web3, time_stamp: float) -> int:
This implements binary search and returns the smallest block number
whose timestamp is at least as large as the time_stamp argument passed in the function
"""
end_block_number = node.eth.get_block("finalized")["number"]
end_block_number = int(node.eth.get_block("finalized")["number"])
start_block_number = 1
close_in_seconds = 30

Expand Down Expand Up @@ -83,7 +83,7 @@ def compute_block_and_month_range( # pylint: disable=too-many-locals

latest_finalized_block = node.eth.get_block("finalized")

current_month_end_block = latest_finalized_block["number"]
current_month_end_block = int(latest_finalized_block["number"])
current_month_end_timestamp = latest_finalized_block["timestamp"]

current_month_end_datetime = datetime.fromtimestamp(
Expand Down

0 comments on commit 05e9191

Please sign in to comment.