diff options
author | Florian Dold <florian@dold.me> | 2024-03-08 01:06:13 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-08 01:06:13 +0100 |
commit | b4ab2fcdf3e1bbc0ca9096661a1812481dca58b3 (patch) | |
tree | c6e09a24003360ff377a9cb64247a43d0adba851 /packages/taler-wallet-webextension | |
parent | ae34a78ff026e2e96b1e15319157d36c57745665 (diff) | |
download | wallet-core-b4ab2fcdf3e1bbc0ca9096661a1812481dca58b3.tar.xz |
wallet-core: remove deprecated peer...PaymentId
Diffstat (limited to 'packages/taler-wallet-webextension')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts | 12 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts | 8 |
2 files changed, 8 insertions, 12 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts index ff9c7e5c7..99de03d2d 100644 --- a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts +++ b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts @@ -23,10 +23,10 @@ import { TalerProtocolTimestamp, } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; +import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { useEffect } from "preact/hooks"; import { alertFromError, useAlertContext } from "../../context/alert.js"; import { useBackendContext } from "../../context/backend.js"; -import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { useAsyncAsHook } from "../../hooks/useAsyncAsHook.js"; import { Props, State } from "./index.js"; @@ -77,12 +77,8 @@ export function useComponentState({ // }; // } - const { - contractTerms, - peerPullDebitId, - amountEffective, - amountRaw, - } = hook.response.p2p; + const { contractTerms, transactionId, amountEffective, amountRaw } = + hook.response.p2p; const amountStr: string = contractTerms.amount; const amount = Amounts.parseOrThrow(amountStr); @@ -156,7 +152,7 @@ export function useComponentState({ const resp = await api.wallet.call( WalletApiOperation.ConfirmPeerPullDebit, { - peerPullDebitId, + transactionId, }, ); onSuccess(resp.transactionId); diff --git a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts index 50b9e5fe7..67f6d9113 100644 --- a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts +++ b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts @@ -20,9 +20,9 @@ import { TalerProtocolTimestamp, } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; +import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { alertFromError, useAlertContext } from "../../context/alert.js"; import { useBackendContext } from "../../context/backend.js"; -import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { useAsyncAsHook } from "../../hooks/useAsyncAsHook.js"; import { Props, State } from "./index.js"; @@ -59,10 +59,10 @@ export function useComponentState({ const { contractTerms, - peerPushCreditId, + transactionId, amountEffective, amountRaw, - exchangeBaseUrl + exchangeBaseUrl, } = hook.response; const effective = Amounts.parseOrThrow(amountEffective); @@ -74,7 +74,7 @@ export function useComponentState({ const resp = await api.wallet.call( WalletApiOperation.ConfirmPeerPushCredit, { - peerPushCreditId, + transactionId, }, ); onSuccess(resp.transactionId); |