From 014d66b46c0b5440b5ad8b024b54d30ec665862f Mon Sep 17 00:00:00 2001 From: Jason Spafford Date: Tue, 13 Aug 2024 16:45:16 -0700 Subject: [PATCH] Move `wallet:transaction` to `wallet:transactions:info` (#5257) --- .../wallet/{transaction/index.ts => transactions/info.ts} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename ironfish-cli/src/commands/wallet/{transaction/index.ts => transactions/info.ts} (97%) diff --git a/ironfish-cli/src/commands/wallet/transaction/index.ts b/ironfish-cli/src/commands/wallet/transactions/info.ts similarity index 97% rename from ironfish-cli/src/commands/wallet/transaction/index.ts rename to ironfish-cli/src/commands/wallet/transactions/info.ts index a55b5c6ef4..5c6ab2550c 100644 --- a/ironfish-cli/src/commands/wallet/transaction/index.ts +++ b/ironfish-cli/src/commands/wallet/transactions/info.ts @@ -21,9 +21,11 @@ import { } from '../../../utils' import { getExplorer } from '../../../utils/explorer' -export class TransactionCommand extends IronfishCommand { +export class TransactionInfoCommand extends IronfishCommand { static description = `Display an account transaction` + static hiddenAliases = ['wallet:transaction'] + static flags = { ...RemoteFlags, account: Flags.string({ @@ -44,7 +46,7 @@ export class TransactionCommand extends IronfishCommand { } async start(): Promise { - const { flags, args } = await this.parse(TransactionCommand) + const { flags, args } = await this.parse(TransactionInfoCommand) const { hash } = args // TODO: remove account arg const account = flags.account ? flags.account : args.account