You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building a subgraph, we sometimes use the value passed to the transaction using event.transaction.value if event is an event emitted in a function. Unfortunately, that value refers to the "outer" transaction, not necessarily to the value passed to the function call.
It would be pretty useful to access the "internal" call from an event (i.e. the calldata + value) passed to the function that triggered the event.
This could be for example done by adding a call to the class Event, like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When building a subgraph, we sometimes use the
valuepassed to the transaction usingevent.transaction.valueifeventis an event emitted in a function. Unfortunately, thatvaluerefers to the "outer" transaction, not necessarily to thevaluepassed to the function call.It would be pretty useful to access the "internal" call from an event (i.e. the calldata + value) passed to the function that triggered the event.
This could be for example done by adding a
callto the classEvent, like this:where
Callcould be something likeBeing able to access the
datacould also be useful.Beta Was this translation helpful? Give feedback.
All reactions