diff options
Diffstat (limited to 'src')
-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 41f8260..4c947a4 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -569,7 +569,9 @@ | |||
569 | var privKeyBuffer = key.privKey.d.toBuffer(); | 569 | var privKeyBuffer = key.privKey.d.toBuffer(); |
570 | privkey = privKeyBuffer.toString('hex'); | 570 | privkey = privKeyBuffer.toString('hex'); |
571 | var addressBuffer = ethUtil.privateToAddress(privKeyBuffer); | 571 | var addressBuffer = ethUtil.privateToAddress(privKeyBuffer); |
572 | address = "0x" + addressBuffer.toString('hex'); | 572 | var hexAddress = addressBuffer.toString('hex'); |
573 | var checksumAddress = ethUtil.toChecksumAddress(hexAddress); | ||
574 | address = ethUtil.addHexPrefix(checksumAddress); | ||
573 | } | 575 | } |
574 | addAddressToList(indexText, address, pubkey, privkey); | 576 | addAddressToList(indexText, address, pubkey, privkey); |
575 | }, 50) | 577 | }, 50) |