|
|
|
@ -57,7 +57,6 @@ export class Accounts { |
|
|
|
|
}) |
|
|
|
|
}).catch((error) => { |
|
|
|
|
reject(error) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
@ -84,8 +83,7 @@ export class Accounts { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
eth_getBalance (payload, cb) { |
|
|
|
|
let address = payload.params[0] |
|
|
|
|
|
|
|
|
|
const address = payload.params[0] |
|
|
|
|
|
|
|
|
|
this.executionContext.vm().stateManager.getAccount(Address.fromString(address)).then((account) => { |
|
|
|
|
cb(null, new BN(account.balance).toString(10)) |
|
|
|
|