Skip to content

docs(admin): write NatSpec for grant_role - #617

Open
Fayyo wants to merge 2 commits into
BCPathway:mainfrom
Fayyo:docs/490-natspec-grant-role
Open

docs(admin): write NatSpec for grant_role#617
Fayyo wants to merge 2 commits into
BCPathway:mainfrom
Fayyo:docs/490-natspec-grant-role

Conversation

@Fayyo

@Fayyo Fayyo commented Jul 29, 2026

Copy link
Copy Markdown

Closes #490

Added NatSpec documentation to the public grant_role function in contracts/admin/src/lib.rs, describing:

  • Authorization requirement (caller must hold SuperAdmin role)
  • Input validation (rejects zero address and unrecognized role variants)
  • Event emission (role_grnt)
  • All panic conditions with their AdminError variants

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

[Docs & Polish] Write NatSpec for grant_role

1 participant