-
Notifications
You must be signed in to change notification settings - Fork 395
Add generate_spy_event_helpers macro #1481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add verification of indexed keys in event assertions
- Tests will fail if indexed fields are changed in event definitions - Must explicitly specify expected indexed fields
…into feature/check-indexed-keys-#1054
…into feature/check-indexed-keys-#1054
…into feature/check-indexed-keys-#1054
…luding AccessControl, Ownable, Account, EthAccount, Votes, Pausable, ERC1155, ERC20, ERC4626, and ERC721. Each test verifies the correct indexed keys for events such as role grants, ownership transfers, and token transfers.
…rki/cairo-contracts into feat/check-indexed-keys-#1054
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1481 +/- ##
=======================================
Coverage 92.36% 92.36%
=======================================
Files 85 85
Lines 2278 2278
=======================================
Hits 2104 2104
Misses 174 174 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
immrsd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Left a suggestion to introduce a helper trait for building expected events
…eat/check-indexed-keys-#1054
…eat/check-indexed-keys-#1054
…dd-spy-event-helper-macro
…eat/refactor-macros-package-for-v2-##1485
…eat/add-spy-event-helper-macro
…dd-spy-event-helper-macro
…dd-spy-event-helper-macro
🧪 Cairo Contract Size Benchmark DiffBYTECODE SIZE (felts) (limit: 81,920 felts)No changes in felts. SIERRA CONTRACT CLASS SIZE (bytes) (limit: 4,089,446 bytes)No changes in bytes. This comment was generated automatically from benchmark diffs. |
Fixes #1480
This PR is still missing documentation, and we can improve: