From 09dab646e39d4b222da79e3a15f441151697c827 Mon Sep 17 00:00:00 2001 From: Rahul Patni Date: Mon, 25 Sep 2023 07:34:42 -0700 Subject: [PATCH] reverting to older balances version --- ironfish-cli/src/commands/wallet/balances.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ironfish-cli/src/commands/wallet/balances.ts b/ironfish-cli/src/commands/wallet/balances.ts index 9e4410e23c..69214d748b 100644 --- a/ironfish-cli/src/commands/wallet/balances.ts +++ b/ironfish-cli/src/commands/wallet/balances.ts @@ -7,6 +7,8 @@ import { IronfishCommand } from '../../command' import { RemoteFlags } from '../../flags' import { compareAssets, renderAssetNameFromHex } from '../../utils' +type AssetBalancePairs = { asset: RpcAsset; balance: GetBalancesResponse['balances'][number] } + export class BalancesCommand extends IronfishCommand { static description = `Display the account's balances for all assets` @@ -43,10 +45,7 @@ export class BalancesCommand extends IronfishCommand { }) this.log(`Account: ${response.content.account}`) - const assetBalancePairs: { - asset: RpcAsset - balance: GetBalancesResponse['balances'][number] - }[] = [] + const assetBalancePairs: AssetBalancePairs[] = [] for (const balance of response.content.balances) { const asset = await client.wallet.getAsset({