From b9cabada5d8f7d2ba5d597048cca7120539048a2 Mon Sep 17 00:00:00 2001 From: Hugh Cunningham Date: Wed, 20 Mar 2024 13:43:30 -0700 Subject: [PATCH] adds memos to 'wallet:transactions' output requires using the '--notes' flag because memos are only available on notes, not transactions --- ironfish-cli/src/commands/wallet/transactions.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ironfish-cli/src/commands/wallet/transactions.ts b/ironfish-cli/src/commands/wallet/transactions.ts index e5359a7ef2..5ea906949a 100644 --- a/ironfish-cli/src/commands/wallet/transactions.ts +++ b/ironfish-cli/src/commands/wallet/transactions.ts @@ -200,6 +200,7 @@ export class TransactionsCommand extends IronfishCommand { const assetName = assetLookup[note.assetId].name const sender = note.sender const recipient = note.owner + const memo = note.memo const group = this.getRowGroup(index, noteCount, transactionRows.length) @@ -214,6 +215,7 @@ export class TransactionsCommand extends IronfishCommand { feePaid, sender, recipient, + memo, }) } else { transactionRows.push({ @@ -223,6 +225,7 @@ export class TransactionsCommand extends IronfishCommand { amount, sender, recipient, + memo, }) } } @@ -302,6 +305,9 @@ export class TransactionsCommand extends IronfishCommand { recipient: { header: 'Recipient Address', }, + memo: { + header: 'Memo', + }, } }