-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Gas estimation silenty fails for calls that return Err
#6605
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
Comments
This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days. |
Please don't close :) |
Hi @athei , is this still an issue? If yes, can you paste some steps here to reproduce the behaviour. It's little bit unclear to me, what exactly is wrong. Probably, I am looking at wrong place in UI. If it's already resolved, let me know, I can close it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the UI where the inputs to a call are entered an RPC will be fired off in the background to estimate the gas usage for this particular set of inputs.
Whenever those inputs lead to an error the gas estimation becomes non functional and replaced by a default value. This isn't necessary because the
gas_required
field is contained in the RPC result no matter the execution statusOk
orErr
.What should be done instead:
Result
along with the debug buffer to the user so that they know what went wrongThe text was updated successfully, but these errors were encountered: