diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-08-31 12:00:04 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-08-31 12:00:04 +0200 |
commit | c3f47e8f5866838b8c58ad8762d636a2b3ec2217 (patch) | |
tree | 5eef656a13cff01a8114c5f9aa7181f870e7a37d /src/wallet.ts | |
parent | 5a7269b20db0371535669c0faa7f1814d967b5ca (diff) |
api simplication
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index 00a82f92c..e90a6e3db 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -701,7 +701,6 @@ export class Wallet { contractTermsHash: proposal.contractTermsHash, finished: false, lastSessionId: undefined, - lastSessionSig: undefined, merchantSig: proposal.merchantSig, payReq, refundsDone: {}, @@ -1134,25 +1133,6 @@ export class Wallet { return { status: "payment-possible", coinSelection: res }; } - /** - * Retrieve information required to pay for a contract, where the - * contract is identified via the fulfillment url. - */ - async queryPaymentByFulfillmentUrl( - url: string, - ): Promise<PurchaseRecord | undefined> { - const t = await this.q().getIndexed( - Stores.purchases.fulfillmentUrlIndex, - url, - ); - - if (!t) { - console.log("query for payment failed"); - return undefined; - } - return t; - } - private async sendReserveInfoToBank(reservePub: string) { const reserve = await this.q().get<ReserveRecord>( Stores.reserves, |