Remove either error id pattern in Samples
This commit is contained in:
parent
071a6ca7cc
commit
a8699bf992
6 changed files with 31 additions and 30 deletions
|
|
@ -20,7 +20,7 @@ module Sample.Treasury (
|
|||
import Plutarch.Context (
|
||||
MintingBuilder,
|
||||
UTXO,
|
||||
buildMinting,
|
||||
buildMintingUnsafe,
|
||||
credential,
|
||||
input,
|
||||
mint,
|
||||
|
|
@ -83,7 +83,7 @@ validCtx =
|
|||
. withValue (Value.singleton gatCs gatTn 1 <> minAda)
|
||||
. withTxId "52b67b60260da3937510ad545c7f46f8d9915bd27e1082e76947fb309f913bd3"
|
||||
]
|
||||
in either error id $ buildMinting builder
|
||||
in buildMintingUnsafe builder
|
||||
|
||||
treasuryRef :: TxOutRef
|
||||
treasuryRef =
|
||||
|
|
@ -124,4 +124,4 @@ trCtxGATNameNotAddress =
|
|||
. withValue (Value.singleton gatCs gatTn 1 <> minAda)
|
||||
. withTxId "52b67b60260da3937510ad545c7f46f8d9915bd27e1082e76947fb309f913bd3"
|
||||
]
|
||||
in either error id $ buildMinting builder
|
||||
in buildMintingUnsafe builder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue