You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address PR review: simplify calcMinFeeRecursive and remove redundant constraints
- Remove getMultiAssets helper and inline the MaryValue extraction, since
EraCommonConstraints guarantees Value ~ MaryValue for all eras including
Dijkstra
- Remove unnecessary parameters from go's recursive loop — utxo, pparams,
poolids, stakeDelegDeposits, drepDelegDeposits, and nExtraWitnesses are
never modified and are already in scope from the enclosing function
- Remove redundant obtainCommonConstraints calls in test generators where
constraints are already in scope from the outer call
[ "Not enough ADA when updating existing change output. Balance: "
678
+
, pretty balance
679
+
, "\nThis means that the transaction does not have enough ada to cover the fees. The usual solution is to provide more inputs, or inputs with more ada."
680
+
]
681
+
prettyError (NotEnoughAdaForNewOutput balance) =
682
+
mconcat
683
+
[ "Not enough ADA when creating new change output. Balance: "
675
684
, pretty balance
676
685
, "\nThis means that the transaction does not have enough ada to cover the fees. The usual solution is to provide more inputs, or inputs with more ada."
677
686
]
@@ -721,7 +730,7 @@ instance Error FeeCalculationError where
721
730
-- balance and appended to the end of the existing outputs; if a change
722
731
-- output already exists it is updated in place. If the resulting change
723
732
-- output would have negative ADA, the transaction is unrecoverable and
724
-
-- 'NotEnoughAda' is returned. Otherwise the function recurses, because
733
+
-- 'NotEnoughAdaForChangeOutput' or 'NotEnoughAdaForNewOutput' is returned. Otherwise the function recurses, because
725
734
-- the changed output may alter the transaction size and therefore the
726
735
-- required fee, and must also satisfy the minimum UTxO
0 commit comments