From 9cc1c671528bfdaedae7a62744aef12526d5299a Mon Sep 17 00:00:00 2001 From: Nayyir Jutha Date: Wed, 28 Aug 2024 14:49:12 -0400 Subject: [PATCH] forgot something --- src/account/interaction.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/account/interaction.ts b/src/account/interaction.ts index 11715d0f..da5c9e1b 100644 --- a/src/account/interaction.ts +++ b/src/account/interaction.ts @@ -18,13 +18,11 @@ export async function entropyManageAccounts (entropy: Entropy, endpoint: string, switch (interactionChoice) { case 'create-import': { let { seed, name, path, importKey } = await inquirer.prompt(newAccountQuestions) - if (importKey && secret.includes('#debug')) { + if (importKey && seed.includes('#debug')) { // isDebugMode = true - seed = secret.split('#debug')[0] - } else { - seed = importKey ? secret : randomAsHex(32) + seed = seed.split('#debug')[0] } - + const newAccount = await AccountService.create({ seed, name, path }) } case 'list-account': {