From 102d43eb7305109626bd8dea2937746d6d22702b Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 3 Sep 2019 23:01:35 +0200 Subject: [PATCH] to checksumAddress --- remix-lib/src/universalDapp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remix-lib/src/universalDapp.js b/remix-lib/src/universalDapp.js index db8c6d00df..03960f430c 100644 --- a/remix-lib/src/universalDapp.js +++ b/remix-lib/src/universalDapp.js @@ -1,5 +1,5 @@ const async = require('async') -const { BN, privateToAddress, isValidPrivate, stripHexPrefix } = require('ethereumjs-util') +const { BN, privateToAddress, isValidPrivate, stripHexPrefix, toChecksumAddress } = require('ethereumjs-util') const crypto = require('crypto') const { EventEmitter } = require('events') @@ -121,7 +121,7 @@ module.exports = class UniversalDApp { }) }) - this.accounts['0x' + address.toString('hex')] = { privateKey, nonce: 0 } + this.accounts[toChecksumAddress('0x' + address.toString('hex'))] = { privateKey, nonce: 0 } } }