add proposal creation test

This commit is contained in:
fanghr 2022-05-04 22:07:46 +08:00
parent 3e612135df
commit 0baf79924f
2 changed files with 29 additions and 5 deletions

View file

@ -6,7 +6,7 @@ Description: Sample based testing for Governor utxos
This module tests primarily the happy path for Governor interactions
-}
module Spec.Sample.Governor (
proposalCreation,
createProposal,
mutateState,
mintGAT,
mintGST,
@ -130,8 +130,8 @@ mintGST =
}
-- | This script context should be a valid transaction.
proposalCreation :: ScriptContext
proposalCreation =
createProposal :: ScriptContext
createProposal =
let pst = Value.singleton proposalPolicySymbol "" 1
gst = Value.assetClassValue govAssetClass 1
sst = Value.assetClassValue stakeAssetClass 1