aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 45c7cb1..80e6609 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -267,7 +267,6 @@
267 function rootKeyChanged() { 267 function rootKeyChanged() {
268 showPending(); 268 showPending();
269 hideValidationError(); 269 hideValidationError();
270 // Validate the root key TODO
271 var rootKeyBase58 = DOM.rootKey.val(); 270 var rootKeyBase58 = DOM.rootKey.val();
272 var errorText = validateRootKey(rootKeyBase58); 271 var errorText = validateRootKey(rootKeyBase58);
273 if (errorText) { 272 if (errorText) {
@@ -460,7 +459,7 @@
460 459
461 function validateRootKey(rootKeyBase58) { 460 function validateRootKey(rootKeyBase58) {
462 try { 461 try {
463 bitcoinjs.bitcoin.HDNode.fromBase58(rootKeyBase58); 462 bitcoinjs.bitcoin.HDNode.fromBase58(rootKeyBase58, network);
464 } 463 }
465 catch (e) { 464 catch (e) {
466 return "Invalid root key"; 465 return "Invalid root key";