1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

Update Pool.ts

This commit is contained in:
Alex Coseru 2020-08-28 19:29:41 +03:00 committed by GitHub
parent a9a614f586
commit aca303acf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ export class Pool extends PoolFactory {
let result = null
try {
const token = new this.web3.eth.Contract(this.poolABI, poolAddress)
const balance = await token.methods.balanceOf(account)
const balance = await token.methods.balanceOf(account).call()
result = this.web3.utils.fromWei(balance)
} catch (e) {
console.error(e)