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 } } }