|
|
|
@ -17,18 +17,6 @@ var Accounts = function () { |
|
|
|
|
Accounts.prototype.init = async function () { |
|
|
|
|
let setBalance = (account) => { |
|
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
|
// this.accountsKeys[ethJSUtil.toChecksumAddress(account.address).toLowerCase()] = account.privateKey
|
|
|
|
|
// this.accounts[ethJSUtil.toChecksumAddress(account.address).toLowerCase()] = { privateKey: Buffer.from(account.privateKey.replace('0x', ''), 'hex'), nonce: 0 }
|
|
|
|
|
|
|
|
|
|
// executionContext.vm().stateManager.getAccount(Buffer.from(account.address.toLowerCase().replace('0x', ''), 'hex'), (err, account) => {
|
|
|
|
|
// if (err) {
|
|
|
|
|
// throw new Error(err)
|
|
|
|
|
// }
|
|
|
|
|
// var balance = '0x56BC75E2D63100000'
|
|
|
|
|
// account.balance = balance || '0xf00000000000000001'
|
|
|
|
|
// resolve()
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
this.accountsKeys[ethJSUtil.toChecksumAddress(account.address)] = account.privateKey |
|
|
|
|
this.accounts[ethJSUtil.toChecksumAddress(account.address)] = { privateKey: Buffer.from(account.privateKey.replace('0x', ''), 'hex'), nonce: 0 } |
|
|
|
|
|
|
|
|
|