docs icon indicating copy to clipboard operation
docs copied to clipboard

Possible erroneous fee estimation instructions

Open jalooc opened this issue 2 years ago • 1 comments

Hi, I was trying to calculate fee estimation for a contract call, but the instructions from the documentation might not work. They suggest using -1 as the gas limit, but after moving over to the V2 weights that is likely incorrect (null is not accepted either) - is that right? If yes, what would be the new correct, best way to estimate the gas fee? Would that be api.call.contractsApi.call().then(res => res.gasRequired) or api.tx.contracts.call().paymentInfo()?

jalooc avatar Feb 16 '23 10:02 jalooc

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 Mar 09 '23 13:03 polkadot-js-bot