remove executable state of the proposal

revert 45a09e8 and 8ffc430
This commit is contained in:
fanghr 2022-04-27 16:23:35 +08:00
parent 31716e573c
commit 836ec5e9cf
2 changed files with 3 additions and 4 deletions

View file

@ -50,7 +50,7 @@ import Agora.Proposal (
PResultTag,
Proposal (..),
ProposalId,
ProposalStatus (Draft, Executable),
ProposalStatus (Draft, Locked),
ProposalThresholds,
pnextProposalId,
proposalDatumValid,
@ -613,8 +613,8 @@ governorValidator gov =
pletFields @'["id", "effects", "status", "cosigners", "thresholds", "votes"]
inputProposalDatum'
passert "Proposal must be in executable state in order to execute effects" $
inputProposalDatum.status #== pconstantData Executable
passert "Proposal must be in locked(executable) state in order to execute effects" $
inputProposalDatum.status #== pconstantData Locked
let expectedOutputProposalDatum =
pforgetData $