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:
parent
decd01a4e5
commit
55314f998a
@ -21,7 +21,7 @@ export default class OceanToken extends KeeperBase {
|
|||||||
return this.contract.balanceOf.call(accountAddress)
|
return this.contract.balanceOf.call(accountAddress)
|
||||||
}
|
}
|
||||||
|
|
||||||
getEthBalance(account) {
|
async getEthBalance(account) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
Logger.log('getting balance for', account)
|
Logger.log('getting balance for', account)
|
||||||
this._web3.eth.getBalance(account, 'latest', (err, balance) => {
|
this._web3.eth.getBalance(account, 'latest', (err, balance) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user