Skip to content

Commit ff1cc88

Browse files
authored
feat(ProviderAPI): allow filtering by more than one address
1 parent e412ea1 commit ff1cc88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ape/api/providers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ def poll_blocks( # type: ignore[empty-body]
877877
def poll_logs( # type: ignore[empty-body]
878878
self,
879879
stop_block: int | None = None,
880-
address: "AddressType | None" = None,
880+
address: "list[AddressType] | AddressType | None" = None,
881881
topics: list[str | list[str]] | None = None,
882882
required_confirmations: int | None = None,
883883
new_block_timeout: int | None = None,
@@ -896,7 +896,7 @@ def poll_logs( # type: ignore[empty-body]
896896
Args:
897897
stop_block (Optional[int]): Optionally set a future block number to stop at.
898898
Defaults to never-ending.
899-
address (Optional[str]): The address of the contract to filter logs by.
899+
address (Union[list[str], str, None]): The address of the contract(s) to filter logs by.
900900
Defaults to all addresses.
901901
topics (Optional[list[Union[str, list[str]]]]): The topics to filter logs by.
902902
Defaults to all topics.

0 commit comments

Comments
 (0)