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

fix errors and gas estimate #2210

Merged
merged 5 commits into from
Dec 18, 2024
Merged

fix errors and gas estimate #2210

merged 5 commits into from
Dec 18, 2024

Conversation

tudor-malene
Copy link
Collaborator

@tudor-malene tudor-malene commented Dec 17, 2024

Why this change is needed

  • convert EVM errors at a higher level
  • estimate gas was losing a revert error
  • remove intrinsic gas low check because we are doing a single gas estimate pass

What changes were made as part of this PR

Please provide a high level list of the changes made

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

@@ -101,7 +101,7 @@ func createInMemTenNode(
MaxRollupSize: 1024 * 128,
BaseFee: big.NewInt(1), // todo @siliev:: fix test transaction builders so this can be different
GasLocalExecutionCapFlag: params.MaxGasLimit / 2,
GasBatchExecutionLimit: params.MaxGasLimit / 2,
GasBatchExecutionLimit: 30_000_000,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to match up sims to testnet?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. It needs to be consolidated at some point, because these configs are all over the place.
No clue why we're not using the defaults everywhere.

Copy link
Contributor

@StefanIliev545 StefanIliev545 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tudor-malene tudor-malene merged commit ea3bf07 into main Dec 18, 2024
2 checks passed
@tudor-malene tudor-malene deleted the tudor/fix_gas_est branch December 18, 2024 07: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.

2 participants