Commit 25ae577
committed
Handle optional swap destination wallet and payout wallet id
edge-core-js swap-to-address makes EdgeSwapRequest.toWallet optional
(an address-only toAddressInfo destination replaces it) and makes
EdgeTxActionSwap.payoutWalletId and EdgeTxSwap.payoutWalletId optional.
Sweep the consumers: wallet-to-wallet swap scenes throw if their
destination wallet is missing, savedAction and swap-details readers
tolerate a missing payout wallet.1 parent 3973d46 commit 25ae577
2 files changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
180 | 184 | | |
181 | 185 | | |
182 | 186 | | |
183 | | - | |
| 187 | + | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
775 | | - | |
776 | | - | |
| 774 | + | |
| 775 | + | |
777 | 776 | | |
778 | 777 | | |
779 | 778 | | |
| |||
0 commit comments