Skip to content

test(compliance): add event emission assertions for all state-changin…#140

Merged
misrasamuelisiguzor-oss merged 2 commits into
WHEELBACK:mainfrom
darcszn:test/compliance-event-emission
Jun 25, 2026
Merged

test(compliance): add event emission assertions for all state-changin…#140
misrasamuelisiguzor-oss merged 2 commits into
WHEELBACK:mainfrom
darcszn:test/compliance-event-emission

Conversation

@darcszn

@darcszn darcszn commented Jun 25, 2026

Copy link
Copy Markdown

…g entrypoints

Every state-changing entrypoint (allow_address, block_address, clear_address, allow_address_until, transfer_admin, accept_admin, pause, unpause) now has a test that calls env.events().all() and asserts topics[0] matches the expected symbol string. The three pre-existing placeholder tests that deferred to the snapshot harness are updated in-place; five new focused tests cover the remaining entrypoints. A shared last_event_symbol helper (adapted from the treasury test suite) keeps the assertions concise.

Description

Related Issue

Closes #[issue_id]

Checklist

  • Description of changes included
  • Test coverage confirmation (new/updated tests added)
  • Screenshot/gif for UI changes (if applicable)
  • ABI snapshot regenerated (if contract interface changed)
  • just check passing locally

closes #74

…g entrypoints

Every state-changing entrypoint (allow_address, block_address,
clear_address, allow_address_until, transfer_admin, accept_admin,
pause, unpause) now has a test that calls env.events().all() and
asserts topics[0] matches the expected symbol string.  The three
pre-existing placeholder tests that deferred to the snapshot harness
are updated in-place; five new focused tests cover the remaining
entrypoints.  A shared last_event_symbol helper (adapted from the
treasury test suite) keeps the assertions concise.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Jun 25, 2026

Copy link
Copy Markdown

@darcszn Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@misrasamuelisiguzor-oss
misrasamuelisiguzor-oss merged commit 073a0d6 into WHEELBACK:main Jun 25, 2026
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.

test(compliance): compliance_test.rs — verify event emission for every state change

3 participants