Skip to content

Improve contract role management and admin delegation invariants #36

@grantfox-oss

Description

@grantfox-oss

Role and admin delegation state can be left in an inconsistent partial state when a role transfer or multi-admin configuration is partially applied.

Affected areas: app/contract/contracts/Folder/src/admin.rs, app/contract/contracts/Folder/src/roles.rs, app/contract/contracts/Folder/src/storage.rs, app/contract/contracts/Folder/src/test.rs.

Implementation scope:

  • Ensure role changes are atomic and validate before persistence.
  • Add delegation revocation, transfer acceptance, and role clearing semantics.
  • Harden role inheritance and admin access checks for every public method.
  • Add regression tests for partial role update failure modes.

Acceptance criteria:

  • Role/administrator updates either complete fully or roll back cleanly.
  • No public action can proceed with partially applied role metadata.
  • Tests cover delegation, role revocation, and cross-role invariants.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignbugSomething isn't workinghelp wantedExtra attention is needed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions