Closed m-Peter closed 2 months ago
The recent changes enhance the logic of the Empty
method in the CadenceEvents
struct by directly checking for transaction or block executed events in the events.Events
slice. This adjustment improves the method's accuracy in determining whether the event collection is empty, moving away from reliance on block lengths. Overall, this update refines event handling and ensures more reliable outcomes in evaluating event presence.
Files | Change Summary |
---|---|
models/events.go |
Modified the logic of the Empty method in the CadenceEvents struct to check for transaction or block executed events, improving accuracy in emptiness determination. |
🐰 In the meadow where events play,
A new logic gleams bright as day.
No more blocks to see if we're free,
Just look for the transactions, you'll agree!
Hooray for the changes, let's hop and cheer,
For accurate counts bring us all near! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
This is a micro-optimization, to avoid decoding EVM block data twice.
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
Bug Fixes