const { runContractFunction: getACHBalance } = useWeb3Contract({
abi: achieverAbi,
contractAddress: achieverAddress,
functionName: "balanceOf",
params: {
account: account,
}
})
const { runContractFunction: getWETHBalance } = useWeb3Contract({
abi: wethAbi,
contractAddress: wethAddress,
functionName: "balanceOf",
params: {
}
})
I had no issue getting the balance of (whose function name’s argument is account (address)) a standard ERC20 token, but when attempting to do the same for WETH (whose function name’s argument is (address)), what should I do with its params, or do anything else to make it work? Leaving it empty wouldn’t work. Thanks.