Replies: 1 comment 6 replies
-
You would get |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been successfully running Ethers to automate various trades against the PancakeSwap rotuer and various token contracts for about 2 weeks successfully.
Since Saturday, I have started to receive all sort of random errors, and also tx.wait sometimes never returns A common one I am seeing is the balanceOf function is reverting. It is being read using the following code:
const _balanceBefore = ethers.BigNumber.from(await _tokenContract.balanceOf(wallet.address))
and the sort of error I am receiving includes:
UnhandledPromiseRejectionWarning: Error: call revert exception (method="balanceOf(address)", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.4.0)
The only thing I know has changed for sure in that time is Mac OSX updated itself at the weekend to Mac OS Big Sur 11.5. But I don't think this is the issue as I've moved the scripts over to my Windows machine and run them under WSL2 (Ubuntu) and I am seeing the same errors.
The scripts have not changed in all this time. I have tried using a new QuickNode and I am seeing the same problems on the new node. I've tried deleting the node_modules directory and doing an npm install again. Nothing I do seems to be getting anywhere.
Has anyone got any ideas what this could be? It is driving me nuts. The node is running Geth 1.10.2 and I am connecting using the JsonRpcProvider.
Beta Was this translation helpful? Give feedback.
All reactions