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 96fc451..c502208 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1238,7 +1238,7 @@
1238 address = libs.ethUtil.addHexPrefix(checksumAddress); 1238 address = libs.ethUtil.addHexPrefix(checksumAddress);
1239 pubkey = libs.ethUtil.addHexPrefix(pubkey); 1239 pubkey = libs.ethUtil.addHexPrefix(pubkey);
1240 if (hasPrivkey) { 1240 if (hasPrivkey) {
1241 privkey = libs.ethUtil.bufferToHex(keyPair.d.toBuffer()); 1241 privkey = libs.ethUtil.bufferToHex(keyPair.d.toBuffer(32));
1242 } 1242 }
1243 } 1243 }
1244 //TRX is different 1244 //TRX is different