replaced use of withMinAda

This commit is contained in:
Jack Hodgkinson 2022-05-09 13:54:20 +01:00
parent cb0f61eb2c
commit 704ec4a38a
2 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,6 @@ module Spec.Sample.Shared (
signer, signer,
signer2, signer2,
minAda, minAda,
withMinAda,
-- * Components -- * Components
@ -192,6 +191,3 @@ wrongEffHash =
minAda :: Value minAda :: Value
minAda = Value.singleton "" "" 10_000_000 minAda = Value.singleton "" "" 10_000_000
withMinAda :: Value -> Value
withMinAda v = v <> minAda

View file

@ -41,10 +41,10 @@ import Plutus.V1.Ledger.Value qualified as Value
import Spec.Sample.Shared ( import Spec.Sample.Shared (
gatCs, gatCs,
gatTn, gatTn,
minAda,
mockTrEffect, mockTrEffect,
signer, signer,
treasuryOut, treasuryOut,
withMinAda,
wrongEffHash, wrongEffHash,
) )
import Spec.Util (datumPair) import Spec.Util (datumPair)
@ -95,7 +95,11 @@ validCtx =
TxOut TxOut
{ txOutAddress = { txOutAddress =
Address (ScriptCredential $ validatorHash mockTrEffect) Nothing Address (ScriptCredential $ validatorHash mockTrEffect) Nothing
, txOutValue = withMinAda $ Value.singleton gatCs gatTn 1 , txOutValue =
mconcat
[ Value.singleton gatCs gatTn 1
, minAda
]
, txOutDatumHash = Nothing , txOutDatumHash = Nothing
} }
} }