From af0f2741993876b5c111c8cba18bd78f020f1b55 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 19 Feb 2020 16:08:26 +0100 Subject: [PATCH] stringify the key --- remix-simulator/src/methods/accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix-simulator/src/methods/accounts.js b/remix-simulator/src/methods/accounts.js index ac1c8d16a..705d2cddc 100644 --- a/remix-simulator/src/methods/accounts.js +++ b/remix-simulator/src/methods/accounts.js @@ -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) {