Skip to content

Commit 149adaf

Browse files
authored
Fix ledger restore to require encrypted key (#5528)
1 parent 28b2127 commit 149adaf

File tree

1 file changed

+5
-5
lines changed
  • ironfish-cli/src/commands/wallet/multisig/ledger

1 file changed

+5
-5
lines changed

ironfish-cli/src/commands/wallet/multisig/ledger/restore.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ export class MultisigLedgerRestore extends IronfishCommand {
1919
async start(): Promise<void> {
2020
const { args } = await this.parse(MultisigLedgerRestore)
2121

22-
let encryptedKeys = args.backup
23-
if (!encryptedKeys) {
24-
encryptedKeys = await ui.longPrompt(
22+
const encryptedKeys =
23+
args.backup ||
24+
(await ui.longPrompt(
2525
'Enter the encrypted multisig key backup to restore to your Ledger device',
26-
)
27-
}
26+
{ required: true },
27+
))
2828

2929
const ledger = new LedgerMultiSigner()
3030
try {

0 commit comments

Comments
 (0)