-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
estimateGas call fails in optimism network. #2518
Comments
I think this is probably an issue with some quirk in the Optimism node and unlikely to be an Ethers issue. |
I don't think so. I have actually noticed there being some issues in the Logging specifically around this method as well. It might be spread to other things too - haven't looked too deep yet. However I think ethers might have some pretty serious bugs in the logger when it comes to less common errors, and less common use cases. For instance, I just discovered a way to crash my app by breaking something in the logger - meanwhile my entire implementation of ethers is wrapped in a try/catch to see if I can gracefully fail... |
@Kankan-0 I just tried this example, and it seems to work.
Not really sure why it'd be failing when the issue was created, but since the transaction involves |
We (the Optimism team) did additional research and found that this was an issue over at QuickNode, the RPC provider behind both mainnet.optimism.io and kovan.optimism.io. QuickNode upgraded its infrastructure over the last few days and it seems that this problem has been fixed along with that upgrade. This can safely be closed as it's not an issue with ethers.js and it's also been fixed. |
Closing this issue since it's now fixed as per smartcontracts comment. |
Description : estimateGas call fails if I try optimism rpc endpoints, with others it's successfully returning the result.
I'm using "ethers": "^5.5.3" version in my project, and while trying the following code I get the
error: Error: gas required exceeds allowance
Here's the full error that I am getting.
All the other endpoints works fine except the optimism ones.
Can anyone suggest if I am doing something wrong?
Thanks.
The text was updated successfully, but these errors were encountered: