diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-28 23:17:12 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-28 23:17:12 +0530 |
commit | 732e764b376dff6b0262b869b29dbdee0c455a0e (patch) | |
tree | d1bcb7ed2257941251aec03346de321ec895deb4 /src/headless/taler-wallet-cli.ts | |
parent | 43655adff0f8f1db082e1f0c18f1271a29ab8905 (diff) | |
download | wallet-core-732e764b376dff6b0262b869b29dbdee0c455a0e.tar.xz |
new balances API, remove defunct 'return funds to own account' implementation
Diffstat (limited to 'src/headless/taler-wallet-cli.ts')
-rw-r--r-- | src/headless/taler-wallet-cli.ts | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts index ca0f0f5d1..ed6146a6b 100644 --- a/src/headless/taler-wallet-cli.ts +++ b/src/headless/taler-wallet-cli.ts @@ -197,14 +197,7 @@ walletCli .action(async (args) => { await withWallet(args, async (wallet) => { const balance = await wallet.getBalances(); - if (args.balance.json) { - console.log(JSON.stringify(balance, undefined, 2)); - } else { - const currencies = Object.keys(balance.byCurrency).sort(); - for (const c of currencies) { - console.log(Amounts.stringify(balance.byCurrency[c].available)); - } - } + console.log(JSON.stringify(balance, undefined, 2)); }); }); |