I was trying to call the balanceOf function in web3.py and I ran into a problem. I started getting this: "web3.exceptions.BadFunctionCallOutput: Could not transact with/call contract function, is contract deployed correctly and chain synced?" error when I called the balanceOf method. I called the method like this:
contract.functions.balanceOf("0x174dE9daF56Aa0399870c31AAc5209a8D7E88Ee2").call()
and from what I saw on the internet this seemed okay, but I removed the line and the error stopped occuring, so what is the fix to this problem