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, according to the doc, in hardhat config, gas will override gasLimit, and gasPrice will override gasPrice for every transaction. However, when I set a hardcoded value for the gas params:
I saw my contract deployment transaction only used 204369036266 as gasPrice, but didn't use 53064000 as gasLimit, and it queried eth_estimateGas and used the result for gasLimit.
Is this expected? Did I misunderstand what the docs mean?
Basically I am trying to use these hardcoded gas params for every transaction, including contract deployment and call, in truffle if I put the same setting in truffle config it will work, so I was wondering how should I do it with hardhat? Thanks for the help!
The text was updated successfully, but these errors were encountered:
To clarify: this works when sending "low level" transactions, and I think it also works with hardhat-web3, but most people use ethers.js with hardhat-ethers now, so this part of the docs is misleading.
Hi, according to the doc, in hardhat config,
gas
will overridegasLimit
, andgasPrice
will overridegasPrice
for every transaction. However, when I set a hardcoded value for the gas params:I saw my contract deployment transaction only used
204369036266
asgasPrice
, but didn't use53064000
asgasLimit
, and it queriedeth_estimateGas
and used the result forgasLimit
.Is this expected? Did I misunderstand what the docs mean?
Basically I am trying to use these hardcoded gas params for every transaction, including contract deployment and call, in truffle if I put the same setting in truffle config it will work, so I was wondering how should I do it with hardhat? Thanks for the help!
The text was updated successfully, but these errors were encountered: