From ec08de77b529e0de0f7543479d61e546bc7b1afd Mon Sep 17 00:00:00 2001 From: Rahul Patni Date: Mon, 25 Sep 2023 08:25:56 -0700 Subject: [PATCH] choice asset name --- ironfish-cli/src/utils/asset.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ironfish-cli/src/utils/asset.ts b/ironfish-cli/src/utils/asset.ts index 71505b7f08..f7496b55dc 100644 --- a/ironfish-cli/src/utils/asset.ts +++ b/ironfish-cli/src/utils/asset.ts @@ -130,7 +130,8 @@ export async function selectAsset( } const choices = balances.map((balance) => { - const assetName = BufferUtils.toHuman(Buffer.from(balance.assetName, 'hex')) + const assetName = BufferUtils.toHuman(Buffer.from(assetLookup[balance.assetId].name, 'hex')) + const name = `${balance.assetId} (${assetName}) (${CurrencyUtils.renderIron( balance.available, )})`