Skip to content

Commit 4f39cbc

Browse files
authored
wallet:transactions:decode prompts for transaction before account (#5261)
1 parent bbf8a1e commit 4f39cbc

File tree

1 file changed

+2
-2
lines changed
  • ironfish-cli/src/commands/wallet/transactions

1 file changed

+2
-2
lines changed

ironfish-cli/src/commands/wallet/transactions/decode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ export class TransactionsDecodeCommand extends IronfishCommand {
4242

4343
const client = await this.connectRpc()
4444

45-
const account = flags.account ?? (await this.selectAccount(client))
46-
4745
let transactionString = flags.transaction
4846
if (!transactionString) {
4947
transactionString = await longPrompt(
@@ -54,6 +52,8 @@ export class TransactionsDecodeCommand extends IronfishCommand {
5452
)
5553
}
5654

55+
const account = flags.account ?? (await this.selectAccount(client))
56+
5757
const rawTransaction = this.tryDeserializeRawTransaction(transactionString)
5858
if (rawTransaction) {
5959
return await renderRawTransactionDetails(client, rawTransaction, account, this.logger)

0 commit comments

Comments
 (0)