Hardhat v2.12.1
Fixed a problem that was preventing Hardhat from being used in Alpine Linux.
Hardhat v2.12.0
This new minor version sets the merge
hardfork 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_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:
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 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
... (truncated)