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

Investigate gas estimation inconsistancy for read_only executions #4742

Open
Leo-Besancon opened this issue Aug 22, 2024 · 0 comments
Open

Comments

@Leo-Besancon
Copy link
Collaborator

In order to choose the best max_gas parameter for a given operation, the best way to estimate the gas consumtion is to simulate it with a read_only call / read_only execution.
The returned value of the read_only call contains the gas used.

It however seems that the gas estimation is too low, and need to be increased by ~20% in order for the "real" call to suceed without an OutOfGas error.

We should investigate why the estimated gas value is too low and fix it.

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

No branches or pull requests

1 participant