Skip to content

Commit

Permalink
Populate extraCoinSource field in `migrationPlanToSelectionWithdraw…
Browse files Browse the repository at this point in the history
…als`.
  • Loading branch information
jonathanknowles committed May 18, 2021
1 parent 83ee3f1 commit f9be46c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/core/src/Cardano/Wallet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1873,10 +1873,15 @@ migrationPlanToSelectionWithdrawals plan rewardWithdrawal outputAddressesToCycle
{ inputsSelected = view #inputIds migrationSelection
, outputsCovered
, utxoRemaining = UTxOIndex.empty
, extraCoinSource = Nothing
, extraCoinSource
, changeGenerated = []
}

extraCoinSource =
if (view #rewardWithdrawal migrationSelection) > Coin 0
then Just (view #rewardWithdrawal migrationSelection)
else Nothing

withdrawal =
if (view #rewardWithdrawal migrationSelection) > Coin 0
then rewardWithdrawal
Expand Down

0 comments on commit f9be46c

Please sign in to comment.