Skip to content

Commit

Permalink
Merge pull request #4 from rumblefishdev/fix/pre-EIP1559-tx-compatibi…
Browse files Browse the repository at this point in the history
…lity

Fix/pre eip1559 tx compatibility
  • Loading branch information
denciu authored Sep 5, 2022
2 parents 851457d + 3107414 commit 6b6c723
Show file tree
Hide file tree
Showing 8 changed files with 383 additions and 70 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,27 @@ Promise { <pending> }
```

Remember to fund your address with some ETH before deploying.

### Minimal EIP1559 gas values

On less crowded networks (such as Sepolia) there may be situations where automatic gas provider will set
`maxFeePerGas` & `maxPriorityFeePerGas` near 0 (when empty blocks are mined). To prevent this you can
set minimal values for them in config:

```
import "@rumblefishdev/hardhat-kms-signer";
...
const config: HardhatUserConfig = {
networks: {
ropsten: {
url: `https://ropsten.infura.io/v3/${process.env.INFURA_KEY}`,
kmsKeyId: "YOUR KMS KEY ID",
minMaxFeePerGas: 1600000000,
mixMaxPriorityFeePerGas: 1200000000
}
}
}
```

137 changes: 94 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@rumblefishdev/eth-signer-kms": "^2.1.0",
"@types/lodash": "^4.14.172",
"asn1.js": "^5.4.1",
"bn.js": "^5.2.1",
"ethers": "^5.6.9"
},
"devDependencies": {
Expand All @@ -53,4 +54,4 @@
"hardhat": "^2.6.0",
"lodash": "*"
}
}
}
Loading

0 comments on commit 6b6c723

Please sign in to comment.