diff --git a/ironfish-cli/src/commands/chain/transactions/info.ts b/ironfish-cli/src/commands/chain/transactions/info.ts index 21c301205c..6dfecd004b 100644 --- a/ironfish-cli/src/commands/chain/transactions/info.ts +++ b/ironfish-cli/src/commands/chain/transactions/info.ts @@ -5,14 +5,16 @@ import { CurrencyUtils, FileUtils } from '@ironfish/sdk' import { Args } from '@oclif/core' import { IronfishCommand } from '../../../command' -import { RemoteFlags } from '../../../flags' +import { ColorFlag, ColorFlagKey, RemoteFlags } from '../../../flags' import * as ui from '../../../ui' export class TransactionInfo extends IronfishCommand { static description = 'show transaction information' + static enableJsonFlag = true static flags = { ...RemoteFlags, + [ColorFlagKey]: ColorFlag, } static args = { @@ -22,7 +24,7 @@ export class TransactionInfo extends IronfishCommand { }), } - async start(): Promise { + async start(): Promise { const { args } = await this.parse(TransactionInfo) const client = await this.connectRpc() @@ -46,5 +48,7 @@ export class TransactionInfo extends IronfishCommand { 'Burn count': transaction.burns.length, }), ) + + return transaction } }