diff options
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r-- | packages/taler-wallet-core/src/operations/peer-to-peer.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/peer-to-peer.ts b/packages/taler-wallet-core/src/operations/peer-to-peer.ts index 7ac165f92..ddfaa0827 100644 --- a/packages/taler-wallet-core/src/operations/peer-to-peer.ts +++ b/packages/taler-wallet-core/src/operations/peer-to-peer.ts @@ -72,6 +72,7 @@ import { checkDbInvariant } from "../util/invariants.js"; import { internalCreateWithdrawalGroup } from "./withdraw.js"; import { GetReadOnlyAccess } from "../util/query.js"; import { createRefreshGroup } from "./refresh.js"; +import { updateExchangeFromUrl } from "./exchanges.js"; const logger = new Logger("operations/peer-to-peer.ts"); @@ -339,6 +340,9 @@ export async function checkPeerPushPayment( } const exchangeBaseUrl = uri.exchangeBaseUrl; + + await updateExchangeFromUrl(ws, exchangeBaseUrl); + const contractPriv = uri.contractPriv; const contractPub = encodeCrock(eddsaGetPublic(decodeCrock(contractPriv))); @@ -463,6 +467,8 @@ export async function acceptPeerPushPayment( ); } + await updateExchangeFromUrl(ws, peerInc.exchangeBaseUrl); + const amount = Amounts.parseOrThrow(peerInc.contractTerms.amount); const mergeReserveInfo = await getMergeReserveInfo(ws, { |