Skip to content

Commit

Permalink
fix: remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Oct 25, 2023
1 parent ffbd120 commit ab57454
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/ape/contracts/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,19 +699,6 @@ def poll_logs(
new_block_timeout=new_block_timeout,
)

# NOTE: Now we process the rest
for new_block in self.chain_manager.blocks.poll_blocks(
start_block=start_block,
stop_block=stop_block,
required_confirmations=required_confirmations,
new_block_timeout=new_block_timeout,
):
if new_block.number is None:
continue

# Get all events in the new block.
yield from self.range(new_block.number, stop=new_block.number + 1)


class ContractTypeWrapper(ManagerAccessMixin):
contract_type: ContractType
Expand Down

0 comments on commit ab57454

Please sign in to comment.