contracts
contracts copied to clipboard
Bump hardhat from 2.10.2 to 2.12.0
Bumps hardhat from 2.10.2 to 2.12.0.
Release notes
Sourced from hardhat's releases.
Hardhat v2.12.0
This new minor version sets the
mergehardfork as the default hardfork used by the Hardhat Network. Most users shouldn't be affected by this change.Besides that, this version fixes a couple of issues related to our compilation pipeline.
Hardhat v2.11.2
This new version of Hardhat brings several fixes and improvements:
- Solidity 0.8.17 is now supported and used by default in the sample projects.
- When forking a network, the disk cache is always used (thanks
@bernard-wagner!)- Stack traces are shown by default in CI servers
- We fixed a problem related to the validation of the
eth_getStorageAtbeing too restrictive (thanks@aathan!)- Reverted an unintentional breaking change in the type of the resolved config
- Improved the heuristic for detecting that a contract deployment failed because the code size was too large
Hardhat v2.11.1
This release fixes a couple of bugs in v2.11.0:
- Some chains, like Polygon, were causing issues when they were forked
- The WASM version of the solidity compiler, which is used in some machines, was not being correctly downloaded.
Hardhat v2.11.0 — The Merge support and fast compilation
We are excited to release this new version of Hardhat, as it makes Hardhat Network compatible with The Merge and makes our compilation much faster. Read on to learn more about these and other improvements.
Support for The Merge
Hardhat Network now has support for The Merge. To try it out, use the new
mergehardfork setting. This hardfork is not selected by default, but you can enable it in your config:module.exports = { networks: { hardhat: { hardfork: "merge" } } };Selecting this new hardfork will introduce a few changes to how Hardhat Network runs, but your contracts should still work without any modification. The rest of this section explains what these changes are.
The
DIFFICULTYopcode (now renamed toPREVRANDAO) will return a pseudo-random value. This value is also exposed in the block header asmixHash.You can use the new
hardhat_setPrevRandaoRPC method to modify the value returned byDIFFICULTY/PREVRANDAOin the next block. We recommend using thesetPrevRandaonetwork helper for this.Hardhat Network’s JSON-RPC now accepts the new
safeandfinalizedblock tags, which in Hardhat Network are just aliases for thelatestblock tag, and correspond to the latest block.Faster compilation
We optimized Hardhat’s compilation pipeline, significantly reducing the overhead it adds on top of
solc. Compilation takes 40% less in most workflows, with a few taking 90% less!
... (truncated)
Commits
e41635aVersion Packagese4d1162Merge pull request #3189 from NomicFoundation/solidity-analyzer-errors304efcbMerge pull request #3248 from NomicFoundation/fix-compiler-downloader04fe473Merge pull request #3255 from NomicFoundation/sync-rethnet-gitignores21b20beSync .gitignore's from rethnet branchacf004eMerge pull request #3186 from NomicFoundation/trace-all-versions-opt-inc0cc875Update packages/hardhat-core/test/internal/hardhat-network/stack-traces/test.ts6afe0b4Merge pull request #3243 from bneeland/patch-13db5334Create hot-pans-doubt.md220f2c8Change compilers cache dir- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)