From 8115ac660cd9d12ef69ca80fc2e4cf8eec6b1ba1 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 5 Dec 2019 22:17:01 +0100 Subject: fix refunds --- src/wallet.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/wallet.ts') diff --git a/src/wallet.ts b/src/wallet.ts index 86b3085f4..489bb2af8 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -49,7 +49,7 @@ import { processDownloadProposal, applyRefund, getFullRefundFees, - processPurchaseImpl, + processPurchase, } from "./wallet-impl/pay"; import { @@ -180,6 +180,7 @@ export class Wallet { pending: PendingOperationInfo, forceNow: boolean = false, ): Promise { + console.log("running pending", pending); switch (pending.type) { case "bug": // Nothing to do, will just be displayed to the user @@ -209,7 +210,7 @@ export class Wallet { await processTip(this.ws, pending.tipId); break; case "pay": - await processPurchaseImpl(this.ws, pending.proposalId); + await processPurchase(this.ws, pending.proposalId); break; default: assertUnreachable(pending); -- cgit v1.2.3