diff options
author | Florian Dold <florian@dold.me> | 2021-06-02 13:23:51 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-06-02 13:24:28 +0200 |
commit | 02f1d4b08116c24f0af1f32cb6d82be292fa6d10 (patch) | |
tree | 1fbcc1675e09584a74896909e1d4d0882d10be8e /packages/taler-wallet-cli | |
parent | c6c17a1c0aaa2c76616ec93df3ebe6621b547cd9 (diff) | |
download | wallet-core-02f1d4b08116c24f0af1f32cb6d82be292fa6d10.tar.xz |
support multiple exchange details per base URL
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index aad034b87..db6c0a9f3 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -598,10 +598,10 @@ advancedCli }) .action(async (args) => { await withWallet(args, async (wallet) => { - const exchange = await wallet.updateExchangeFromUrl( + const { exchange, exchangeDetails } = await wallet.updateExchangeFromUrl( args.withdrawManually.exchange, ); - const acct = exchange.wireInfo?.accounts[0]; + const acct = exchangeDetails.wireInfo.accounts[0]; if (!acct) { console.log("exchange has no accounts"); return; |