diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r-- | packages/taler-wallet-core/src/operations/reward.ts | 4 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/operations/reward.ts b/packages/taler-wallet-core/src/operations/reward.ts index ed9927bab..5d609f41d 100644 --- a/packages/taler-wallet-core/src/operations/reward.ts +++ b/packages/taler-wallet-core/src/operations/reward.ts @@ -379,9 +379,9 @@ export async function processTip( return { type: TaskRunResultType.Error, errorDetail: makeErrorDetail( - TalerErrorCode.WALLET_TIPPING_COIN_SIGNATURE_INVALID, + TalerErrorCode.WALLET_REWARD_COIN_SIGNATURE_INVALID, {}, - "invalid signature from the exchange (via merchant tip) after unblinding", + "invalid signature from the exchange (via merchant reward) after unblinding", ), }; } diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index fc4214e56..b0d7706a3 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -1236,11 +1236,7 @@ async function queryReserve( logger.trace( `got reserve status error, EC=${result.talerErrorResponse.code}`, ); - if ( - resp.status === 404 && - result.talerErrorResponse.code === - TalerErrorCode.EXCHANGE_RESERVES_STATUS_UNKNOWN - ) { + if (resp.status === HttpStatusCode.NotFound) { return { ready: false }; } else { throwUnexpectedRequestError(resp, result.talerErrorResponse); |