Commit 6167e45e authored by yann300's avatar yann300

to checksumAddress

parent 145023da
const async = require('async') 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 crypto = require('crypto')
const { EventEmitter } = require('events') const { EventEmitter } = require('events')
...@@ -121,7 +121,7 @@ module.exports = class UniversalDApp { ...@@ -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 }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment