apps
apps copied to clipboard
Gas estimation silenty fails for calls that return `Err`
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 status Ok
or Err
.
What should be done instead:
- Display the gas estimation no matter the result of the call
- Display the
Result
along with the debug buffer to the user so that they know what went wrong
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 :)