Skip to content

Conversation

zhiqiangxu
Copy link
Contributor

@zhiqiangxu zhiqiangxu commented May 6, 2025

In DoEstimateGas, both skipNonceCheck and skipEoACheck are set to true (source), so the gas cost doesn't include l1 cost and operator fee.

This PR makes it behave more accurately (e.g., it should return an error if user balance can't afford L2 fee + L1 fee + operator fee).

Besides, when !st.msg.SkipNonceChecks && !st.msg.SkipFromEOACheck is false, operatorFee is still being distributed here, which is not symmetrical.

Also semantically, skipNonceCheck/skipEoACheck should have nothing to do with skipping calculation of l1 cost and operator fee.

@zhiqiangxu zhiqiangxu requested a review from a team as a code owner May 6, 2025 16:51
@zhiqiangxu zhiqiangxu requested a review from teddyknox May 6, 2025 16:51
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

Successfully merging this pull request may close these issues.

1 participant