diff options
author | Florian Dold <florian@dold.me> | 2023-12-13 08:02:28 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-12-13 08:02:28 +0100 |
commit | 00b98cb79d1a99d42fbbf6a09eada615b45e8bf6 (patch) | |
tree | 2f1685dbd2e628a7698fc40cc63534dca12ba89d /packages/taler-wallet-core/src/wallet.ts | |
parent | 81878c8cb8484e60cd153af377d30f462b0a69e8 (diff) | |
download | wallet-core-00b98cb79d1a99d42fbbf6a09eada615b45e8bf6.tar.xz |
-actually check master pub in addExchange
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 94d55806e..86a80335e 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -948,7 +948,9 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( } case WalletApiOperation.AddExchange: { const req = codecForAddExchangeRequest().decode(payload); - await fetchFreshExchange(ws, req.exchangeBaseUrl); + await fetchFreshExchange(ws, req.exchangeBaseUrl, { + expectedMasterPub: req.masterPub, + }); return {}; } case WalletApiOperation.UpdateExchangeEntry: { |