File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
submit-api/src/SubmitAPI/Internal Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -270,10 +270,11 @@ makeTransactionBodyAutoBalance eraInMode systemstart history pparams
270270 :: TxOut CtxTx era
271271 -> ProtocolParameters
272272 -> Either TxBodyErrorAutoBalance ()
273- checkMinUTxOValue txout@ (TxOut _ v _ _) pparams' = do
273+ checkMinUTxOValue txout@ (TxOut addr v _ _) pparams' = do
274274 minUTxO <- first TxBodyErrorMinUTxOMissingPParams
275275 $ calculateMinimumUTxO era txout pparams'
276- if txOutValueToLovelace v >= selectLovelace minUTxO
276+ let chargeBoxWillBeMerged = addr == changeaddr
277+ if txOutValueToLovelace v >= selectLovelace minUTxO || chargeBoxWillBeMerged
277278 then Right ()
278279 else Left TxBodyErrorMissingParamMinUTxO -- todo fix: TxOutInAnyEra. Current err is incorrect
279280
You can’t perform that action at this time.
0 commit comments