starknet.go icon indicating copy to clipboard operation
starknet.go copied to clipboard

Utility for read events, and helper method in `rpc.TransactionReceiptWithBlockInfo` using it

Open thiagodeev opened this issue 5 months ago • 3 comments

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")

thiagodeev avatar Jun 26 '25 13:06 thiagodeev

Hey @thiagodeev,

I'd like to work on this issue.

raymax0x avatar Jun 27 '25 18:06 raymax0x

Thanks @raymax0x! Go ahead

thiagodeev avatar Jun 27 '25 19:06 thiagodeev

Opened PR to add this feature : #767

raymax0x avatar Jun 30 '25 10:06 raymax0x