Skip to content

Commit

Permalink
reverting to older balances version
Browse files Browse the repository at this point in the history
  • Loading branch information
patnir committed Sep 25, 2023
1 parent f0c47f8 commit 09dab64
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ironfish-cli/src/commands/wallet/balances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 09dab64

Please sign in to comment.