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,
|
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
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue