countingVote,create,startVoting to execute,create,vote

Let's embrace consistancy between Haskell types and Plutarch types.
This commit is contained in:
Seungheon Oh 2022-06-16 13:28:55 -05:00
parent 014ef050d2
commit 8e9dd16613
7 changed files with 18 additions and 18 deletions

View file

@ -189,11 +189,11 @@ governorDatumValid = phoistAcyclic $
plam $ \datum -> unTermCont $ do
thresholds <-
tcont $
pletFields @'["execute", "draft", "vote"] $
pletFields @'["execute", "create", "vote"] $
pfield @"proposalThresholds" # datum
PDiscrete execute' <- pmatchC thresholds.execute
PDiscrete draft' <- pmatchC thresholds.draft
PDiscrete draft' <- pmatchC thresholds.create
PDiscrete vote' <- pmatchC thresholds.vote
execute <- tclet $ pextract # execute'