taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 62b64cb453f6a4fd62c64bdd8e3240d5d7f03ce4
parent 315b167bee240e625beea731df6472a971b46cb2
Author: Sebastian <sebasjm@gmail.com>
Date:   Mon, 20 Sep 2021 00:17:45 -0300

make no sense to send the noncePriv if the proposal is already paid

Diffstat:
Mpackages/taler-util/src/walletTypes.ts | 2--
Mpackages/taler-wallet-core/src/operations/pay.ts | 3---
2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts @@ -356,7 +356,6 @@ export const codecForPreparePayResultAlreadyConfirmed = (): Codec<PreparePayResu .property("contractTerms", codecForAny()) .property("contractTermsHash", codecForString()) .property("proposalId", codecForString()) - .property("noncePriv", codecForString()) .build("PreparePayResultAlreadyConfirmed"); export const codecForPreparePayResult = (): Codec<PreparePayResult> => @@ -407,7 +406,6 @@ export interface PreparePayResultAlreadyConfirmed { amountEffective: string; contractTermsHash: string; proposalId: string; - noncePriv: string; } export interface BankWithdrawDetails { diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts @@ -1465,7 +1465,6 @@ export async function checkPaymentByProposalId( amountRaw: Amounts.stringify(purchase.download.contractData.amount), amountEffective: Amounts.stringify(purchase.totalPayCost), proposalId, - noncePriv: proposal.noncePriv, }; } else if (!purchase.timestampFirstSuccessfulPay) { return { @@ -1476,7 +1475,6 @@ export async function checkPaymentByProposalId( amountRaw: Amounts.stringify(purchase.download.contractData.amount), amountEffective: Amounts.stringify(purchase.totalPayCost), proposalId, - noncePriv: proposal.noncePriv, }; } else { const paid = !purchase.paymentSubmitPending; @@ -1489,7 +1487,6 @@ export async function checkPaymentByProposalId( amountEffective: Amounts.stringify(purchase.totalPayCost), ...(paid ? { nextUrl: purchase.download.contractData.orderId } : {}), proposalId, - noncePriv: proposal.noncePriv, }; } }