diff options
Diffstat (limited to 'src/operations/payback.ts')
-rw-r--r-- | src/operations/payback.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/operations/payback.ts b/src/operations/payback.ts index 51adb6ad3..181527693 100644 --- a/src/operations/payback.ts +++ b/src/operations/payback.ts @@ -24,7 +24,7 @@ import { InternalWalletState } from "./state"; import { Stores, TipRecord, CoinStatus } from "../types/dbTypes"; import { Logger } from "../util/logging"; -import { PaybackConfirmation } from "../types/talerTypes"; +import { RecoupConfirmation, codecForRecoupConfirmation } from "../types/talerTypes"; import { updateExchangeFromUrl } from "./exchanges"; import { NotificationType } from "../types/notifications"; @@ -72,7 +72,7 @@ export async function payback( if (resp.status !== 200) { throw Error(); } - const paybackConfirmation = PaybackConfirmation.checked(await resp.json()); + const paybackConfirmation = codecForRecoupConfirmation().decode(await resp.json()); if (paybackConfirmation.reserve_pub !== coin.reservePub) { throw Error(`Coin's reserve doesn't match reserve on payback`); } |