Skip to content

Commit

Permalink
tests: fix TxReceipt typings
Browse files Browse the repository at this point in the history
  • Loading branch information
bilbeyt committed Jun 29, 2023
1 parent 42cbb88 commit fabf7e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beamer/tests/agent/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def test_event_fetcher_progress_without_events(agent, direction):
ape.chain.mine(1)
with Sleeper(5) as sleeper:
while (
agent.get_context(direction).latest_blocks[ape.chain.chain_id].number
agent.get_context(direction).latest_blocks[ape.chain.chain_id]["number"]
!= ape.chain.blocks[-1].number
):
sleeper.sleep(0.1)
Expand All @@ -400,7 +400,7 @@ def test_handling_reorgs(config, direction, token, request_manager):
with Sleeper(1) as sleeper:
while (
ChainId(ape.chain.chain_id) not in agent.get_context(direction).latest_blocks
or agent.get_context(direction).latest_blocks[ChainId(ape.chain.chain_id)].number
or agent.get_context(direction).latest_blocks[ChainId(ape.chain.chain_id)]["number"]
!= expected_block_number
):
sleeper.sleep(0.1)
Expand Down

0 comments on commit fabf7e1

Please sign in to comment.