Replies: 2 comments 9 replies
-
The If the log's topic0 matches an event topic hash in the Interface (and there are no data errors), it will be added, otherwise it won't be. Feel free to post some examples though, if you feel there is a case where the Event is defined in the Interface but the |
Beta Was this translation helpful? Give feedback.
6 replies
-
(moving to discussions) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to get the logs from the transaction receipt.
I do this:
Sometimes, the events have the
event
andargs
parameters in the returned object and it helps me to do something like this directly:but sometimes, for some contracts,
event
andargs
don't exist on theEvent
object. I am wondering why, because I've looked into the contracts and they emit the same kind of events.Question 1: I'd appreciate if you could let me know what's the issue here and why sometimes it doesn't include
event
andargs
.Question 2: What's the alternative and easiest way ? I know about the
interface
, but maybe there's a cleaner way in 2021.Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions