Skip to content

Commit

Permalink
create-account: don't attempt removeKey if using Ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedotexe committed Jul 22, 2020
1 parent c7ed7df commit acf1205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/create-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async function createAccount(options) {
console.warn(`near state ${options.accountId}`);
console.warn('to confirm creation. Keyfile for this account has been saved.');
} else {
await near.connection.signer.keyStore.removeKey(options.networkId, options.accountId);
if (!options.usingLedger) await near.connection.signer.keyStore.removeKey(options.networkId, options.accountId);
throw error;
}
}
Expand Down

0 comments on commit acf1205

Please sign in to comment.