From 9519bdd9d2aaa404821866dec171bd8557a2c05c Mon Sep 17 00:00:00 2001 From: Jonathan Knowles Date: Tue, 20 Apr 2021 06:52:43 +0000 Subject: [PATCH] Fix typos of "outputs" in comments. This also fixes a similar typo in the ordinary coin selection algorithm. In response to review feedback: https://github.com/input-output-hk/cardano-wallet/pull/2618#discussion_r615821640 --- .../src/Cardano/Wallet/Primitive/CoinSelection/MA/RoundRobin.hs | 2 +- lib/core/src/Cardano/Wallet/Primitive/Migration/Selection.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/src/Cardano/Wallet/Primitive/CoinSelection/MA/RoundRobin.hs b/lib/core/src/Cardano/Wallet/Primitive/CoinSelection/MA/RoundRobin.hs index d42a85c542e..727484408f0 100644 --- a/lib/core/src/Cardano/Wallet/Primitive/CoinSelection/MA/RoundRobin.hs +++ b/lib/core/src/Cardano/Wallet/Primitive/CoinSelection/MA/RoundRobin.hs @@ -223,7 +223,7 @@ data SelectionResult change = SelectionResult -- ^ An optional extra source of ada. , outputsCovered :: ![TxOut] - -- ^ A list of ouputs covered. + -- ^ A list of outputs covered. -- FIXME: Left as a list to allow to work-around the limitation of -- 'performSelection' which cannot run for no output targets (e.g. in -- the context of a delegation transaction). This allows callers to diff --git a/lib/core/src/Cardano/Wallet/Primitive/Migration/Selection.hs b/lib/core/src/Cardano/Wallet/Primitive/Migration/Selection.hs index 833b3ec7399..1046913598b 100644 --- a/lib/core/src/Cardano/Wallet/Primitive/Migration/Selection.hs +++ b/lib/core/src/Cardano/Wallet/Primitive/Migration/Selection.hs @@ -630,7 +630,7 @@ addValueToOutputs constraints outputsOriginal outputUnchecked = -- -- As a tie-breaker, we give priority to outputs with smaller numbers -- of assets. Merging with a smaller output is more likely to succeed, - -- because merging with a larger ouput is more likely to fall foul of + -- because merging with a larger output is more likely to fall foul of -- the output size limit. outputsSorted :: [TokenMap] outputsSorted = L.sortOn sortOrder outputs