I am trying to test a contract using Hardhat and want to set the gas price to zero. This will make it easier to see if my functions are working correctly, in that I can easily calculate the correct answer to many digits absent gas costs, while adjusting for gas on each transaction is a major pain. I tried to set the gas price to zero in
hardhat.config.js, but when I ran
npx hardhat test it gave me the error
InvalidInputError: Transaction gasPrice (0) is too low for the next block, which has a baseFeePerGas of 875000000
Is there a way to set the gas price to zero in Hardhat? I am using hardhat 2.14.0.