docs
docs copied to clipboard
Possible erroneous fee estimation instructions
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()
?
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.