Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Commit

Permalink
stringify the key
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Feb 20, 2020
1 parent 485682e commit af0f274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remix-simulator/src/methods/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Accounts.prototype._addAccount = function (privateKey, balance) {
})

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) {
Expand Down

0 comments on commit af0f274

Please sign in to comment.