Skip to content

Governor: admin cancel roleΒ #119

@bitfalt

Description

@bitfalt

πŸ“‹ Description

Provide an optional emergency admin that can cancel proposals without voting.

βœ… Acceptance Criteria

  • Storage: admin: ContractAddress (set once at construction)
  • Entrypoint cancel(proposal_id: u256) callable only by admin
  • Emit ProposalCanceled(proposal_id)
  • Admin cannot vote or change outcomes, only cancel

πŸ§ͺ Testing

  • Admin cancels β†’ success
  • Non-admin tries β†’ revert
  • Admin address can be zero (disabled)

Metadata

Metadata

Assignees

No one assigned

    Labels

    onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weeksimple-dao

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions