From 5eaa6877bca7f220bc2364be96c8fcb7526dedbb Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Mon, 12 Dec 2016 10:50:09 +1100 Subject: Extended Key calculation does not use global var --- src/js/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/js/index.js b/src/js/index.js index 5f688f0..1e66dd8 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -238,7 +238,7 @@ showValidationError(errorText); return; } - calcBip32ExtendedKey(derivationPath); + bip32ExtendedKey = calcBip32ExtendedKey(derivationPath); displayBip32Info(); hidePending(); } @@ -318,7 +318,7 @@ } function calcBip32ExtendedKey(path) { - bip32ExtendedKey = bip32RootKey; + var extendedKey = bip32RootKey; // Derive the key from the path var pathBits = path.split("/"); for (var i=0; i