wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.2k stars 296 forks source link

deployment failed on xdai - invalid gas limits #315

Closed drortirosh closed 2 years ago

drortirosh commented 2 years ago

trying to deploy a contract using hardhat-deploy 0.11.4 (a deployment that works flawlessly on other networks, goerli, mainnet)

it attempted to deploy, but got stuck for a long time. in blockscout, I can see the pending transaction with gasPrice: 0.000000008 Gwei

the generated .pendingTransactions indeed contains:

      "gasPrice": "8",
      "maxFeePerGas": "8",
      "maxPriorityFeePerGas": "0",

calling getFeesData returns maxFeePerGas.toString: 1000000014 maxPriorityFeePerGas: 1000000000 gasPrice: 2500000007

drortirosh commented 2 years ago

addition: trying to specify either --gasprice or --maxfee/--priorityfee results with an error:

HH114: An incompatible transaction with gasPrice and EIP-1559 fee price fields.

drortirosh commented 2 years ago

my bad... I was using an old (0.9.3) deployer. the new deployer (0.11.4) works great (reads the old, pending transaction and correctly increases the gas price)