Skip to content
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

Gas estimation failed #11

Open
konstiantyn opened this issue May 27, 2021 · 8 comments
Open

Gas estimation failed #11

konstiantyn opened this issue May 27, 2021 · 8 comments

Comments

@konstiantyn
Copy link

I'm getting this error. I changed serval ether.js version. But same error.
6A37CDE4-BE97-11EB-8CA0-8CEC4B55F049

@ozgurk78
Copy link

I have same error , I guess ; No problem with any code, just no suitable Opportunity found.

@KidL84
Copy link

KidL84 commented Jan 25, 2022

same issue. Any solutions?

@petenilson
Copy link

I'm getting the same issue. When I dig into the error details I'm seeing code: 'UNPREDICTABLE_GAS_LIMIT', returned by the server. Any ideas?

@red-saint-nft
Copy link

@petenilson which chain are you running it on? Getting same error on different chain.

@petenilson
Copy link

@petenilson which chain are you running it on? Getting same error on different chain.

Ethereum main net

@dariobuzz
Copy link

same issue 'UNPREDICTABLE_GAS_LIMIT', how can I fix it?

@ss-zheng
Copy link

same issue here, any solution? Can we skip gas estimation?

@RH-Adv1c3
Copy link

RH-Adv1c3 commented May 9, 2024

same issue here, any solution? Can we skip gas estimation?

In Theory yes, you could replace
await this.bundleExecutorContract.provider.estimateGas( { ...transaction, from: this.executorWallet.address })
With a gas number which you find to be the average of a transaction. It sends gas limit double the number you put in.
This is far from optimal to use but it's technically a go around. If you don't want to use static gas, then you'd have to see if you can change the ethers estimation interaction. Or change it with another lib. I haven't found the solution yet but I've had this for a couple hours now so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants