diff options
author | Florian Dold <florian@dold.me> | 2024-01-09 16:23:26 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-01-09 16:23:26 +0100 |
commit | f8cde03f0cb6a7584fb92885f8979a01916a917d (patch) | |
tree | 6f120387f8f5297f436e2d2bd2d4d7b5c1814146 /packages/taler-wallet-core/src/util/coinSelection.ts | |
parent | de39d432374a3ecd1bddd788b1ac1585461af8c1 (diff) | |
download | wallet-core-f8cde03f0cb6a7584fb92885f8979a01916a917d.tar.gz wallet-core-f8cde03f0cb6a7584fb92885f8979a01916a917d.tar.bz2 wallet-core-f8cde03f0cb6a7584fb92885f8979a01916a917d.zip |
wallet-core: refactor peer-pull-debit and test aborting
Diffstat (limited to 'packages/taler-wallet-core/src/util/coinSelection.ts')
-rw-r--r-- | packages/taler-wallet-core/src/util/coinSelection.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/util/coinSelection.ts b/packages/taler-wallet-core/src/util/coinSelection.ts index 6070f4c78..9b29cee26 100644 --- a/packages/taler-wallet-core/src/util/coinSelection.ts +++ b/packages/taler-wallet-core/src/util/coinSelection.ts @@ -233,9 +233,9 @@ function tallyFees( export type SelectPayCoinsResult = | { - type: "failure"; - insufficientBalanceDetails: PayMerchantInsufficientBalanceDetails; - } + type: "failure"; + insufficientBalanceDetails: PayMerchantInsufficientBalanceDetails; + } | { type: "success"; coinSel: PayCoinSelection }; /** @@ -889,9 +889,9 @@ export interface PeerCoinSelectionDetails { export type SelectPeerCoinsResult = | { type: "success"; result: PeerCoinSelectionDetails } | { - type: "failure"; - insufficientBalanceDetails: PayPeerInsufficientBalanceDetails; - }; + type: "failure"; + insufficientBalanceDetails: PayPeerInsufficientBalanceDetails; + }; export interface PeerCoinRepair { exchangeBaseUrl: string; |