starknet.go
starknet.go copied to clipboard
Utility for read events, and helper method in `rpc.TransactionReceiptWithBlockInfo` using it
A utility to filter events in a []rpc.Event slice would be nice to have, and have a method in the rpc.TransactionReceiptWithBlockInfo type to filter the events from it would also be great.
Ex:
myEvent := utils.EventWith(eventSlice, "event_key")
myEvent := txReceipt.EventWith("event_key")
Hey @thiagodeev,
I'd like to work on this issue.
Thanks @raymax0x! Go ahead
Opened PR to add this feature : #767