add missing plutarch level proposal status PLocked
This commit is contained in:
parent
eb4dc2c654
commit
53629f53c3
2 changed files with 1 additions and 2 deletions
|
|
@ -304,6 +304,7 @@ data PProposalStatus (s :: S)
|
|||
-- e.g. like Tilde used 'pmatchEnum'.
|
||||
PDraft (Term s (PDataRecord '[]))
|
||||
| PVotingReady (Term s (PDataRecord '[]))
|
||||
| PLocked (Term s (PDataRecord '[]))
|
||||
| PFinished (Term s (PDataRecord '[]))
|
||||
deriving stock (GHC.Generic)
|
||||
deriving anyclass (Generic)
|
||||
|
|
|
|||
|
|
@ -441,8 +441,6 @@ stakeValidator stake =
|
|||
anyOutput @PStakeDatum # txInfo
|
||||
#$ plam
|
||||
$ \value address newStakeDatum' -> P.do
|
||||
PStakeDatum newStakeDatum <- pmatch newStakeDatum'
|
||||
newStakeDatumF <- pletFields @'["stakedAmount"] newStakeDatum
|
||||
let isScriptAddress = pdata address #== ownAddress
|
||||
let correctOutputDatum = pdata newStakeDatum' #== pdata stakeDatum'
|
||||
let valueCorrect = pdata continuingValue #== pdata value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue