Skip to content

Conversation

@ericnordelo
Copy link
Member

Fixes #1480

This PR is still missing documentation, and we can improve:

  • Output for parsing errors (diagnostics)
  • Reducing imports requirements (snforge_std::Event vs Event, etc...)
  • Removing the dependency on our EventSpyQueue implementation

turkaturki and others added 27 commits April 3, 2025 11:15
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
…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
@ericnordelo ericnordelo requested a review from immrsd July 29, 2025 16:01
@codecov
Copy link

codecov bot commented Jul 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.36%. Comparing base (23f6502) to head (f6ebb5c).

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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 23f6502...f6ebb5c. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@immrsd immrsd left a 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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 10, 2025

🧪 Cairo Contract Size Benchmark Diff

BYTECODE 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add spy event helpers macro

4 participants