You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to this seeming to be unnecessary (since the gas needed for verification should be unrelated to preVerificationGas), this caused me confusion because I was setting high values for all gas fields when calling eth_estimateUserOperationGas so that I could then follow with the appropriate values returned by this call. This caused the bundler to respond with an unreasonably high value for verificationGas, which is supposed to be only the amount necessary for the operation. In my case, it was higher than the hardcoded 10e6 overall gas limit, causing bundle failure.
The text was updated successfully, but these errors were encountered:
Yes, the verfiicationGas calculation is currently incorrect. We are in the process of fixing and standarizing gas limit calculations.
It is indeed a complex issue, and affect more than just this method.
Hi
On this line:
https://github.com/eth-infinitism/bundler/blob/26e4f4c/packages/bundler/src/UserOpMethodHandler.ts#L157
preOpGas
is used for theverificationGasLimit
for the response.However,
preOpGas
includespreVerificationGas
:https://github.com/eth-infinitism/account-abstraction/blob/8fae866/contracts/core/EntryPoint.sol#L672
In addition to this seeming to be unnecessary (since the gas needed for verification should be unrelated to
preVerificationGas
), this caused me confusion because I was setting high values for all gas fields when callingeth_estimateUserOperationGas
so that I could then follow with the appropriate values returned by this call. This caused the bundler to respond with an unreasonably high value forverificationGas
, which is supposed to be only the amount necessary for the operation. In my case, it was higher than the hardcoded 10e6 overall gas limit, causing bundle failure.The text was updated successfully, but these errors were encountered: