diff options
author | Florian Dold <florian@dold.me> | 2021-06-22 13:52:28 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-06-22 13:52:28 +0200 |
commit | e35c2f581b49f6441b6f75bb9ce0a1677d5fb46f (patch) | |
tree | 1e94c19f47e6f4461977a5d2ee536439092acbb2 /packages/taler-wallet-core/src/operations | |
parent | 7383b89cabbfdb8f2fbd6bb9e7b64d09385f7bea (diff) | |
download | wallet-core-e35c2f581b49f6441b6f75bb9ce0a1677d5fb46f.tar.xz |
simplify task loop, test coin suspension
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts index 464c3136f..e662ee72f 100644 --- a/packages/taler-wallet-core/src/operations/pay.ts +++ b/packages/taler-wallet-core/src/operations/pay.ts @@ -205,10 +205,7 @@ export async function getEffectiveDepositAmount( return Amounts.sub(Amounts.sum(amt).amount, Amounts.sum(fees).amount).amount; } -export function isSpendableCoin( - coin: CoinRecord, - denom: DenominationRecord, -): boolean { +function isSpendableCoin(coin: CoinRecord, denom: DenominationRecord): boolean { if (coin.suspended) { return false; } @@ -721,7 +718,9 @@ async function processDownloadProposalImpl( ); if (!isWellFormed) { - logger.trace(`malformed contract terms: ${j2s(proposalResp.contract_terms)}`); + logger.trace( + `malformed contract terms: ${j2s(proposalResp.contract_terms)}`, + ); const err = makeErrorDetails( TalerErrorCode.WALLET_CONTRACT_TERMS_MALFORMED, "validation for well-formedness failed", |