Skip to content

Commit 4096fb6

Browse files
committed
fix typos
1 parent 6707cc4 commit 4096fb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/BotPlutusInterface/Balance.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ balanceTxIO ::
115115
Eff effs (Either Text Tx)
116116
balanceTxIO = balanceTxIO' @w [TxWithoutScript]
117117

118-
{- | This is just a more flexible version of `balanceTxIO` which let's specify the `BalanceTxConstraint`
118+
{- | This is just a more flexible version of `balanceTxIO` which let us specify the `BalanceTxConstraint`(s)
119119
- for the `Tx` that we are balancing.
120120
-}
121121
balanceTxIO' ::
@@ -216,9 +216,9 @@ balanceTxIO' balanceTxconstraints pabConf ownPkh unbalancedTx =
216216
then pure (balancedTx, minUtxos)
217217
else balanceTxLoop utxoIndex privKeys minUtxos balancedTx
218218

219-
-- `utxosAndCollateralAtAddress` returns all the utxos that can be used as input of a `Tx`,
219+
-- `utxosAndCollateralAtAddress` returns all the utxos that can be used as an input of a `Tx`,
220220
-- i.e. we filter out `CollateralUtxo` present at the user's address, so it can't be used as input of a `Tx`.
221-
-- This function throws error if the `Tx` type is of `BalanceTxWithScripts` but there's not `CollateralUtxo`
221+
-- This function throws error if `TxWithScript` constraint is present but there's no `CollateralUtxo`
222222
-- in the environment.
223223
utxosAndCollateralAtAddress ::
224224
forall (w :: Type) (effs :: [Type -> Type]) (a :: Type).
@@ -409,7 +409,7 @@ handleNonAdaChange changeAddr utxos tx =
409409
then Right $ if Value.isZero nonAdaChange then tx else tx {txOutputs = outputs}
410410
else Left "Not enough inputs to balance tokens."
411411

412-
{- | `addAdaChange` checks if `TxWithSeparateChange` is the present in the provided balancing
412+
{- | `addAdaChange` checks if `TxWithSeparateChange` is present in the provided balancing
413413
constraints, if it is then we add the ada change to seperate `TxOut`, else we add it to
414414
any `TxOut` present at changeAddr.
415415
-}

0 commit comments

Comments
 (0)