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:
parent
a9a614f586
commit
aca303acf3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user