File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ CTL allows tweaking the default balancer behavior by letting the user impose con
2020
2121- Using arbitrary address as user's own (for transaction balancing): ` mustUseUtxosAtAddresses ` / ` mustUseUtxosAtAddress `
2222- Providing additional UTxOs to use: ` mustUseAdditionalUtxos `
23- - Bypassing wallet's collateral selection and select collateral UTxOs from a given set: ` mustUseCollateralUtxos `
23+ - Bypassing wallet's collateral selection and selecting collateral UTxOs from a given set: ` mustUseCollateralUtxos `
2424- Overriding change address: ` mustSendChangeToAddress `
2525- Preventing certain UTxOs from being spent: ` mustNotSpendUtxosWithOutRefs ` / ` mustNotSpendUtxoWithOutRef `
2626- Distributing token outputs equally between change UTxOs: ` mustGenChangeOutsWithMaxTokenQuantity `
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ contract (ContractParams p) = do
147147 \{ input, output } -> Tuple input output
148148
149149 nonSpendableOref <-
150- liftedM " Failed to get utxos at Bob 's address"
150+ liftedM " Failed to get utxos at Alice 's address"
151151 (Set .findMin <<< Map .keys <$> utxosAt aliceAddress)
152152
153153 mp /\ cs <- Helpers .mkCurrencySymbol alwaysMintsPolicy
Original file line number Diff line number Diff line change @@ -273,8 +273,7 @@ setTransactionCollateral changeAddr transaction = do
273273 mbCollateralUtxos <- asksConstraints _collateralUtxos
274274 -- We must filter out UTxOs that are set as non-spendable in the balancer
275275 -- constraints
276- let
277- isSpendable = not <<< flip Set .member nonSpendableSet
276+ let isSpendable = not <<< flip Set .member nonSpendableSet
278277 collateral <- case mbCollateralUtxos of
279278 -- if no collateral utxos are specified, use the wallet, but filter
280279 -- the unspendable ones
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ mustUseAdditionalUtxos :: UtxoMap -> BalanceTxConstraintsBuilder
181181mustUseAdditionalUtxos = wrap <<< set _additionalUtxos
182182
183183-- | Tells the balancer to select from the provided UTxO set when choosing
184- -- | collateral UTxOs. Disables wallet's collateral selection .
184+ -- | collateral UTxOs, instead of UTxOs provided by the browser wallet .
185185mustUseCollateralUtxos :: UtxoMap -> BalanceTxConstraintsBuilder
186186mustUseCollateralUtxos = wrap <<< set _collateralUtxos <<< Just
187187
You can’t perform that action at this time.
0 commit comments