apps icon indicating copy to clipboard operation
apps copied to clipboard

Gas estimation silenty fails for calls that return `Err`

Open athei opened this issue 3 years ago • 2 comments

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

athei avatar Nov 25 '21 10:11 athei

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.

polkadot-js-bot avatar Dec 16 '21 11:12 polkadot-js-bot

Please don't close :)

athei avatar Dec 16 '21 12:12 athei