Skip to content

Commit

Permalink
chore: mycry
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 8, 2023
1 parent 771f037 commit 8aaedbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ape/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ def from_event(
from ape import convert
from ape.utils.abi import LogInputABICollection, is_dynamic_sized_type

event = getattr(event, "abi", event)
event_abi = event.abi if hasattr(event, "abi") else event
search_topics = search_topics or {}
topic_filter: List[Optional[HexStr]] = [encode_hex(keccak(text=event.selector))]
abi_inputs = LogInputABICollection(event)
topic_filter: List[Optional[HexStr]] = [encode_hex(keccak(text=event_abi.selector))]
abi_inputs = LogInputABICollection(event_abi)

def encode_topic_value(abi_type, value):
if isinstance(value, (list, tuple)):
Expand Down

0 comments on commit 8aaedbc

Please sign in to comment.