Skip to content

Commit

Permalink
explicityly asking to broadcast ledger transaction (#5440)
Browse files Browse the repository at this point in the history
  • Loading branch information
patnir authored Sep 26, 2024
1 parent c159fe0 commit 5218bd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ironfish-cli/src/utils/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import IronfishApp, {
ResponseViewKey,
} from '@zondax/ledger-ironfish'
import {
default as IronfishDkgApp,
KeyResponse,
ResponseAddress as ResponseAddressDkg,
ResponseDkgRound1,
Expand All @@ -30,7 +31,6 @@ import {
ResponseProofGenKey as ResponseProofGenKeyDkg,
ResponseViewKey as ResponseViewKeyDkg,
} from '@zondax/ledger-ironfish-dkg'
import { default as IronfishDkgApp } from '@zondax/ledger-ironfish-dkg'
import { ResponseError } from '@zondax/ledger-js'
import * as ui from '../ui'
import { watchTransaction } from './transaction'
Expand Down Expand Up @@ -501,7 +501,7 @@ export async function sendTransactionWithLedger(
ux.stdout(`\nHash: ${transaction.hash().toString('hex')}`)
ux.stdout(`Fee: ${CurrencyUtils.render(transaction.fee(), true)}`)

await ui.confirmOrQuit('', confirm)
await ui.confirmOrQuit('Would you like to broadcast this transaction?', confirm)

const addTransactionResponse = await client.wallet.addTransaction({
transaction: signedTransaction,
Expand Down

0 comments on commit 5218bd8

Please sign in to comment.