]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Derivation path set correctly when changing coins
authorIan Coleman <coleman.ian@gmail.com>
Thu, 20 Aug 2015 22:51:18 +0000 (08:51 +1000)
committerIan Coleman <coleman.ian@gmail.com>
Thu, 20 Aug 2015 22:54:06 +0000 (08:54 +1000)
Closes #9

bip39-standalone.html
src/js/index.js

index 9ab955277100cc41224f3bedc60219dffd9c44f3..9a402528d5221f1bc0f975f6b648a2eb11ac6436 100644 (file)
@@ -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) {
index 2f7815d540b9b2fc48f724561a20319e11d6ba1f..676684b69efe35bb93202079a9be062d1e8f4040 100644 (file)
 
     function bip44Changed() {
         setBip44DerivationPath();
-        derivationPath = DOM.bip44path.val();
         derivationChanged();
     }
 
         path += account + "'/";
         path += change;
         DOM.bip44path.val(path);
+        derivationPath = DOM.bip44path.val();
     }
 
     function parseIntNoNaN(val, defaultVal) {