Skip to content

Commit

Permalink
Renders transaction summary at the end of the sign command. (#5129)
Browse files Browse the repository at this point in the history
* Renders transaction summary at the end of the sign command.

* lint
  • Loading branch information
patnir authored Jul 17, 2024
1 parent 6207960 commit fbb0cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ironfish-cli/src/commands/wallet/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { IronfishCommand } from '../../command'
import { RemoteFlags } from '../../flags'
import { longPrompt } from '../../utils/input'
import { Ledger } from '../../utils/ledger'
import { watchTransaction } from '../../utils/transaction'
import { renderTransactionDetails, watchTransaction } from '../../utils/transaction'

export class SignTransaction extends IronfishCommand {
static description = `Sign an unsigned transaction`
Expand Down Expand Up @@ -73,6 +73,8 @@ export class SignTransaction extends IronfishCommand {
this.log(`\nHash: ${transaction.hash().toString('hex')}`)
this.log(`Fee: ${CurrencyUtils.render(transaction.fee(), true)}`)

await renderTransactionDetails(client, transaction, account, this.logger)

if (flags.broadcast && response.content.accepted === false) {
this.error(
`Transaction '${transaction.hash().toString('hex')}' was not accepted into the mempool`,
Expand Down

0 comments on commit fbb0cfe

Please sign in to comment.