Skip to content

test(admin): verify events are emitted correctly on revoke - #619

Open
Fayyo wants to merge 1 commit into
BCPathway:mainfrom
Fayyo:test/481-events-revoke
Open

test(admin): verify events are emitted correctly on revoke#619
Fayyo wants to merge 1 commit into
BCPathway:mainfrom
Fayyo:test/481-events-revoke

Conversation

@Fayyo

@Fayyo Fayyo commented Jul 29, 2026

Copy link
Copy Markdown

Closes #481

Adds two new tests for revoke event correctness:

  • test_revoke_role_emits_event_with_correct_role_for_each_role — analogous to the existing test_grant_role_emits_event_with_correct_role_for_each_role, asserting that revoking SuperAdmin, Pauser, and Minter each emit a role_rvk event with the correct role, admin, and address.

  • test_revoke_role_event_records_contract_admin — analogous to the existing test_grant_role_event_records_the_granting_caller, verifying that when a non-admin SuperAdmin performs the revoke, the event records the contract admin from storage (matching the current _revoke_role behavior via get_admin).

All 67 tests pass.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Fayyo 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

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.

[Testing] Test: Events are emitted correctly on revoke

1 participant