You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()?
The text was updated successfully, but these errors were encountered:
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 beapi.call.contractsApi.call().then(res => res.gasRequired)
orapi.tx.contracts.call().paymentInfo()
?The text was updated successfully, but these errors were encountered: