aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/index.js b/src/js/index.js
index ec73628..5a1037b 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -799,7 +799,7 @@
799 } 799 }
800 // Ethereum values are different 800 // Ethereum values are different
801 if (networks[DOM.network.val()].name == "ETH - Ethereum") { 801 if (networks[DOM.network.val()].name == "ETH - Ethereum") {
802 var privKeyBuffer = key.keyPair.d.toBuffer(); 802 var privKeyBuffer = key.keyPair.d.toBuffer(32);
803 privkey = privKeyBuffer.toString('hex'); 803 privkey = privKeyBuffer.toString('hex');
804 var addressBuffer = ethUtil.privateToAddress(privKeyBuffer); 804 var addressBuffer = ethUtil.privateToAddress(privKeyBuffer);
805 var hexAddress = addressBuffer.toString('hex'); 805 var hexAddress = addressBuffer.toString('hex');