to checksumAddress

pull/5370/head
yann300 5 years ago
parent b1a1205980
commit 102d43eb73
  1. 4
      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 }
}
}

Loading…
Cancel
Save