From d88829cfa8dc7bf2967fb494af0290e068466828 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 23 Jul 2020 17:35:17 +0530 Subject: towards refunds with updated protocol --- src/operations/pay.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/operations/pay.ts') diff --git a/src/operations/pay.ts b/src/operations/pay.ts index 29b697833..0027bf0f3 100644 --- a/src/operations/pay.ts +++ b/src/operations/pay.ts @@ -59,7 +59,6 @@ import { InternalWalletState } from "./state"; import { getTimestampNow, timestampAddDuration } from "../util/time"; import { strcmp, canonicalJson } from "../util/helpers"; import { - readSuccessResponseJsonOrErrorCode, readSuccessResponseJsonOrThrow, } from "../util/http"; @@ -455,11 +454,7 @@ async function recordConfirmPay( timestampFirstSuccessfulPay: undefined, autoRefundDeadline: undefined, paymentSubmitPending: true, - refundGroups: [], - refundsDone: {}, - refundsFailed: {}, - refundsPending: {}, - refundsRefreshCost: {}, + refunds: {}, }; await ws.db.runWithWriteTransaction( @@ -492,7 +487,7 @@ async function recordConfirmPay( const refreshCoinPubs = coinSelection.coinPubs.map((x) => ({ coinPub: x, })); - await createRefreshGroup(tx, refreshCoinPubs, RefreshReason.Pay); + await createRefreshGroup(ws, tx, refreshCoinPubs, RefreshReason.Pay); }, ); -- cgit v1.2.3