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
-
When building a subgraph, we sometimes use the
value
passed to the transaction usingevent.transaction.value
ifevent
is an event emitted in a function. Unfortunately, thatvalue
refers to the "outer" transaction, not necessarily to thevalue
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 classEvent
, like this:where
Call
could be something likeBeing able to access the
data
could also be useful.Beta Was this translation helpful? Give feedback.
All reactions