alto icon indicating copy to clipboard operation
alto copied to clipboard

Understanding gas calculations: How is `paymasterVerificationGasLimit` estimated?

Open matthiasgeihs opened this issue 6 months ago • 0 comments

Hey, I'm trying to understand how gas estimations work. In particular, looking at paymasterVerificationGasLimit.

What I do understand: EntryPointSimulations.sol is used to simulate operations and thereby measure gas.

What I don't understand: The return type struct ExecutionResult of simulateHandleOP does not include paymasterVerificationGasLimit, however, the EntryPointV07SimulationsAbi does have this field in the return value of this function (see here).

How is that possible? And how is that value calculated on the contract side?

matthiasgeihs avatar Jul 26 '24 11:07 matthiasgeihs