@governor:governor.proposalState
Current state of a Governor proposal: Pending, Active, Canceled, Defeated, Succeeded, Queued, Expired or Executed.
Returns: string
Syntax
Section titled “Syntax”@governor:governor.proposalState(governor proposalId)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
governor |
address |
Governor address |
proposalId |
number |
Proposal id |
Examples
Section titled “Examples”load governor
set $governor 0x44fA8E6f47987339850636F88629646662444217set $proposalId 42
print @governor.proposalState($governor $proposalId)- Returns the state name:
Pending,Active,Canceled,Defeated,Succeeded,Queued,ExpiredorExecuted.