Skip to content

Commit

Permalink
Verbose name.
Browse files Browse the repository at this point in the history
  • Loading branch information
zmrocze committed Sep 29, 2022
1 parent 015bb9e commit 5db75f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BotPlutusInterface/Effects.hs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ calcMinUtxo pabconf txout = do

ctxout <-
mapLeft (Text.pack . show) $
toCardanoTxOutForked netId TxApi.toCardanoTxOutDatumHash txout
toCardanoTxOutPossibleZeroAda netId TxApi.toCardanoTxOutDatumHash txout

let (Coin minTxOut) =
evaluateMinLovelaceOutput pparamsInEra $
Expand All @@ -309,13 +309,13 @@ calcMinUtxo pabconf txout = do
else return txout
where
-- We need to redefine this to remove error reporting with 0 ada outputs.
toCardanoTxOutValue value = do
toCardanoTxOutValuePossibleZeroAda value = do
-- when (Ada.fromValue value == mempty) (Left OutputHasZeroAda)
CApi.TxOutValue CApi.MultiAssetInBabbageEra <$> toCardanoValue value

toCardanoTxOutForked networkId fromHash (TxOut addr value datumHash) =
toCardanoTxOutPossibleZeroAda networkId fromHash (TxOut addr value datumHash) =
CApi.TxOut <$> toCardanoAddressInEra networkId addr
<*> toCardanoTxOutValue value
<*> toCardanoTxOutValuePossibleZeroAda value
<*> fromHash datumHash
<*> pure CApi.S.ReferenceScriptNone

Expand Down

0 comments on commit 5db75f0

Please sign in to comment.