Hi, is there an efficient way to estimate gas spending when deploying with truffle?
According this pull request, should i set gas: 0 in config file?
Thanks
Feb 22, 2022, 10:52 AM
Dont provide the gasLimit. In the shared link it clearly says
This fix removes the default gas value to ensure that gas is estimated if the user does not provide their own gas in the transaction params.
meaning you don't provide the gasLimit if you want it to be estimated
This fix removes the default gas value to ensure that gas is estimated if the user does not provide their own gas in the transaction params.
meaning you don't provide the gasLimit if you want it to be estimated
Feb 22, 2022, 11:15 AM
Thanks. There also was said that this kind of approach estimates badly so community encouraged to workaround this estimation to be better.
Will try to exclude this param from settings.
Will try to exclude this param from settings.
Feb 22, 2022, 11:18 AM