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_getStorageAt being 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 merge hardfork setting. This hardfork is not selected by default, but you can enable it in your config:
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 DIFFICULTY opcode (now renamed to PREVRANDAO) will return a pseudo-random value. This value is also exposed in the block header as mixHash.
You can use the new hardhat_setPrevRandao RPC method to modify the value returned by DIFFICULTY/PREVRANDAO in the next block. We recommend using the setPrevRandao network helper for this.
Hardhat Network’s JSON-RPC now accepts the new safe and finalized block tags, which in Hardhat Network are just aliases for the latest block 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!
How much of an impact this has depends on the size of your project, setup, and workflow, so we’ll explore two examples here, running the same benchmarks on each.
We’ll focus on a few different workflows:
Clean compilation: compiling the entire codebase from scratch
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 rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps hardhat from 2.10.1 to 2.11.2.
Release notes
Sourced from hardhat's releases.
... (truncated)
Commits
a3b4d9a
Run changesets versionb649a57
Merge pull request #3179 from NomicFoundation/upgrade-toolbox-sample-projects59d262b
Merge pull request #3169 from ololade97/patch-197b99e0
Merge pull request #3148 from NomicFoundation/fork-cache-not-working-for-opti...7ca17a4
Merge pull request #3160 from NomicFoundation/ensure-support-for-solidity-081...f7d3843
Merge pull request #3177 from NomicFoundation/relax-eth-storage-at-validationf4fd6a2
Create nervous-dolls-tell.md7991b38
Make hardhat-ethers test more reliable10f03fb
Add more test cases for storage slot1cfee28
Create big-cooks-decide.mdDependabot 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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)