Commit 13ee7776 authored by yann300's avatar yann300 Committed by Aniket

stringify the key

parent 6d37555b
...@@ -62,7 +62,7 @@ Accounts.prototype._addAccount = function (privateKey, balance) { ...@@ -62,7 +62,7 @@ Accounts.prototype._addAccount = function (privateKey, balance) {
}) })
this.accounts[ethJSUtil.toChecksumAddress('0x' + address.toString('hex'))] = { privateKey, nonce: 0 } this.accounts[ethJSUtil.toChecksumAddress('0x' + address.toString('hex'))] = { privateKey, nonce: 0 }
this.accountsKeys[ethJSUtil.toChecksumAddress('0x' + address.toString('hex'))] = privateKey this.accountsKeys[ethJSUtil.toChecksumAddress('0x' + address.toString('hex'))] = '0x' + privateKey.toString('hex')
} }
Accounts.prototype.newAccount = function (cb) { Accounts.prototype.newAccount = function (cb) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment