1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

made gethEthBalance aync because it is async

This commit is contained in:
Sebastian Gerske 2018-09-20 10:17:43 +02:00
parent decd01a4e5
commit 55314f998a

View File

@ -21,7 +21,7 @@ export default class OceanToken extends KeeperBase {
return this.contract.balanceOf.call(accountAddress)
}
getEthBalance(account) {
async getEthBalance(account) {
return new Promise((resolve, reject) => {
Logger.log('getting balance for', account)
this._web3.eth.getBalance(account, 'latest', (err, balance) => {