replaced use of withMinAda
This commit is contained in:
parent
cb0f61eb2c
commit
704ec4a38a
2 changed files with 6 additions and 6 deletions
|
|
@ -10,7 +10,6 @@ module Spec.Sample.Shared (
|
|||
signer,
|
||||
signer2,
|
||||
minAda,
|
||||
withMinAda,
|
||||
|
||||
-- * Components
|
||||
|
||||
|
|
@ -192,6 +191,3 @@ wrongEffHash =
|
|||
|
||||
minAda :: Value
|
||||
minAda = Value.singleton "" "" 10_000_000
|
||||
|
||||
withMinAda :: Value -> Value
|
||||
withMinAda v = v <> minAda
|
||||
|
|
|
|||
|
|
@ -41,10 +41,10 @@ import Plutus.V1.Ledger.Value qualified as Value
|
|||
import Spec.Sample.Shared (
|
||||
gatCs,
|
||||
gatTn,
|
||||
minAda,
|
||||
mockTrEffect,
|
||||
signer,
|
||||
treasuryOut,
|
||||
withMinAda,
|
||||
wrongEffHash,
|
||||
)
|
||||
import Spec.Util (datumPair)
|
||||
|
|
@ -95,7 +95,11 @@ validCtx =
|
|||
TxOut
|
||||
{ txOutAddress =
|
||||
Address (ScriptCredential $ validatorHash mockTrEffect) Nothing
|
||||
, txOutValue = withMinAda $ Value.singleton gatCs gatTn 1
|
||||
, txOutValue =
|
||||
mconcat
|
||||
[ Value.singleton gatCs gatTn 1
|
||||
, minAda
|
||||
]
|
||||
, txOutDatumHash = Nothing
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue