File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
plutus-ledger-api/src/PlutusLedgerApi/V1 Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,10 @@ unionWith f ls rs =
426
426
427
427
-- | Convert a 'Value' to a simple list, keeping only the non-zero amounts.
428
428
-- Note that the result isn't sorted, meaning @v1 == v2@ doesn't generally imply
429
- -- @flattenValue v1 == flattenValue v2@.
429
+ -- @flattenValue v1 == flattenValue v2@. Additionally, the entries in the
430
+ -- result are listed in reverse order of the underlying data of the original ‘Value’.
431
+ -- For instance, the lovelace entry which ordinarily appears first in the ‘Value’
432
+ -- will appear last in the result.
430
433
-- Also assumes that there are no duplicate keys in the 'Value' 'Map'.
431
434
flattenValue :: Value -> [(CurrencySymbol , TokenName , Integer )]
432
435
flattenValue v = goOuter [] (Map. toList $ getValue v)
You can’t perform that action at this time.
0 commit comments