From 2b831bc6b577f88485bb89cfcf7f94fb3f39c1d2 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Fri, 21 Aug 2015 08:51:18 +1000 Subject: [PATCH] Derivation path set correctly when changing coins Closes #9 --- bip39-standalone.html | 2 +- src/js/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.41.0