X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=blobdiff_plain;f=src%2Fjs%2Findex.js;h=3a5a0ef3fecc7f4d804bc84bc118832c28f20527;hp=79f4e4ccb4dbb48e200a403c124b7d5970db20eb;hb=e40acc3ab0e78ca3a9b63d0b1c9e16f804da104e;hpb=56ad960105f082e958154c24ad49d25c1db2f4be diff --git a/src/js/index.js b/src/js/index.js index 79f4e4c..3a5a0ef 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -175,6 +175,10 @@ function delayedPhraseChanged() { hideValidationError(); + seed = null; + bip32RootKey = null; + bip32ExtendedKey = null; + clearAddressesList(); showPending(); if (phraseChangeTimeoutEvent != null) { clearTimeout(phraseChangeTimeoutEvent); @@ -184,7 +188,6 @@ function phraseChanged() { showPending(); - hideValidationError(); setMnemonicLanguage(); // Get the mnemonic phrase var phrase = DOM.phrase.val(); @@ -197,7 +200,6 @@ var passphrase = DOM.passphrase.val(); calcBip32RootKeyFromSeed(phrase, passphrase); calcForDerivationPath(); - hidePending(); } function delayedEntropyChanged() { @@ -273,10 +275,9 @@ } function calcForDerivationPath() { - showPending(); clearDerivedKeys(); clearAddressesList(); - hideValidationError(); + showPending(); // Don't show bip49 if it's selected but network doesn't support it if (bip49TabSelected() && !networkHasBip49()) { return; @@ -296,7 +297,6 @@ displayBip49Info(); } displayBip32Info(); - hidePending(); } function generateClicked() { @@ -603,17 +603,19 @@ for (var i=0; i