Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible erroneous fee estimation instructions #403

Open
jalooc opened this issue Feb 16, 2023 · 1 comment
Open

Possible erroneous fee estimation instructions #403

jalooc opened this issue Feb 16, 2023 · 1 comment
Labels

Comments

@jalooc
Copy link

jalooc commented Feb 16, 2023

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()?

@polkadot-js-bot
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants