In your hardhat.config.js
, you can explicitly state the network that you are using and subsequently the gasPrice that you would like to use. In the docs, there is a gasPrice
configuration which can be set.
gas: Its value should be "auto" or a number. If a number is used, it will be the gas limit used by default in every transaction. If "auto" is used, the gas limit will be automatically estimated. Default value: "auto".
Alternatively, if you're hung up on gas, you can also the plugin hardhat-gas-reporter
which can be read more on here.