diff options
author | Florian Dold <florian@dold.me> | 2023-10-16 10:25:58 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-10-16 10:25:58 +0200 |
commit | 529993da2f14934456b4083cb1f2a3fa69248ca4 (patch) | |
tree | acc57b5172e0262ce11290ec2266880d0582f308 /packages/taler-wallet-core/src/operations/reward.ts | |
parent | 6a4e0ffd858a6eeb29f19de949db87a115b34097 (diff) | |
download | wallet-core-529993da2f14934456b4083cb1f2a3fa69248ca4.tar.xz |
wallet-core: sort transactions ASC by default to not break tests
Diffstat (limited to 'packages/taler-wallet-core/src/operations/reward.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/reward.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/reward.ts b/packages/taler-wallet-core/src/operations/reward.ts index 4e16d977d..ed9927bab 100644 --- a/packages/taler-wallet-core/src/operations/reward.ts +++ b/packages/taler-wallet-core/src/operations/reward.ts @@ -23,7 +23,7 @@ import { Amounts, BlindedDenominationSignature, codecForMerchantTipResponseV2, - codecForTipPickupGetResponse, + codecForRewardPickupGetResponse, CoinStatus, DenomKeyType, encodeCrock, @@ -168,11 +168,11 @@ export async function prepareTip( const merchantResp = await ws.http.fetch(tipStatusUrl.href); const tipPickupStatus = await readSuccessResponseJsonOrThrow( merchantResp, - codecForTipPickupGetResponse(), + codecForRewardPickupGetResponse(), ); logger.trace(`status ${j2s(tipPickupStatus)}`); - const amount = Amounts.parseOrThrow(tipPickupStatus.tip_amount); + const amount = Amounts.parseOrThrow(tipPickupStatus.reward_amount); logger.trace("new tip, creating tip record"); await updateExchangeFromUrl(ws, tipPickupStatus.exchange_url); |