From: Ian Coleman Date: Thu, 20 Aug 2015 22:51:18 +0000 (+1000) Subject: Derivation path set correctly when changing coins X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=commitdiff_plain;h=2b831bc6b577f88485bb89cfcf7f94fb3f39c1d2 Derivation path set correctly when changing coins Closes #9 --- diff --git a/bip39-standalone.html b/bip39-standalone.html index 9ab9552..9a40252 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html @@ -14717,7 +14717,6 @@ var Mnemonic = function(language) { function bip44Changed() { setBip44DerivationPath(); - derivationPath = DOM.bip44path.val(); derivationChanged(); } @@ -14945,6 +14944,7 @@ var Mnemonic = function(language) { path += account + "'/"; path += change; DOM.bip44path.val(path); + derivationPath = DOM.bip44path.val(); } function parseIntNoNaN(val, defaultVal) { diff --git a/src/js/index.js b/src/js/index.js index 2f7815d..676684b 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -135,7 +135,6 @@ function bip44Changed() { setBip44DerivationPath(); - derivationPath = DOM.bip44path.val(); derivationChanged(); } @@ -363,6 +362,7 @@ path += account + "'/"; path += change; DOM.bip44path.val(path); + derivationPath = DOM.bip44path.val(); } function parseIntNoNaN(val, defaultVal) {