Open Braqzen opened 9 months ago
@Braqzen
log(5)
you're logging a reference type, whereas when you log log(SomeStruct)
you're logging a complex type
LogData
receipt's data
fielddata
field from a byte array back into it's original SomeStruct
formSomeStruct
via your indexer handler such as: fn do_a_thing(s: SomeStruct)
Log
receiptlog(5)
, you'd have to add the Log
to your handler such as: fn do_a_thing(s: Log)
5
value via the Log
's ra
field assert_eq!(s.ra, 5)
It has been brought to my attention that the indexer can only capture an event if it has an ID associated with it, potentially in the form of a struct.
I may have misunderstood.
If it is not currently possible to capture events such as
and instead we must do
then that is an unintuitive UX limitation. I expect to be able to log any type and capture it in the indexer rather than be limited to wrapping it into a struct.