diff options
-rw-r--r-- | src/js/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/js/index.js b/src/js/index.js index 102c7c5..3981e81 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1134,8 +1134,10 @@ | |||
1134 | var hexAddress = addressBuffer.toString('hex'); | 1134 | var hexAddress = addressBuffer.toString('hex'); |
1135 | var checksumAddress = libs.ethUtil.toChecksumAddress(hexAddress); | 1135 | var checksumAddress = libs.ethUtil.toChecksumAddress(hexAddress); |
1136 | address = libs.ethUtil.addHexPrefix(checksumAddress); | 1136 | address = libs.ethUtil.addHexPrefix(checksumAddress); |
1137 | privkey = libs.ethUtil.addHexPrefix(privkey); | ||
1138 | pubkey = libs.ethUtil.addHexPrefix(pubkey); | 1137 | pubkey = libs.ethUtil.addHexPrefix(pubkey); |
1138 | if (hasPrivkey) { | ||
1139 | privkey = libs.ethUtil.bufferToHex(keyPair.d.toBuffer()); | ||
1140 | } | ||
1139 | } | 1141 | } |
1140 | 1142 | ||
1141 | // Stellar is different | 1143 | // Stellar is different |