Replies: 1 comment 2 replies
-
Also, this error (for the same sequence of calls) did not appear before the merge. I wonder if the software update changed how nodes estimate gas. |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hi! I recently encountered a 'cannot estimate gas; transaction may fail or may require manual gas limit' error when attempting to estimate the gas limit for a call to the 0x exchange contract.
This error is caused by execution reverting due to an insufficient token allowance. However, as part of the wallet flow, the token allowance is set after estimating the swap gas limit. Is there a parameter that forces the node to estimate the gas limit regardless of whether the call reverts? Of course, a manual gas limit is always possible (but rarely desirable).
Beta Was this translation helpful? Give feedback.
All reactions