This release improves Solidity Tests with configurable transaction gas caps and safer gas snapshot checks, while also making Hardhat faster to start and easier to migrate to from Hardhat 2.
Changes
-
#8234
81871fdThanks @tenderdeve! - Explain the unsupported cheatcodeeip712HashType(string,string)and point to the documentation for the alternative instead. -
#8400
2f48724Thanks @kanej! - Support setting the transaction gas cap in Solidity Tests -
#8367
82d00fcThanks @alcuadrado! - Lazy load dependencies to optimize bootstrap time -
#8391
f3c5727Thanks @schaable! - Makehardhat test solidity --snapshot-checkread-only. It no longer rewrites or deletes.gas-snapshotorsnapshots/*.jsonfiles, and instead reports differences. The command now fails when a stored gas value differs from the current one, or when no baseline exists, with a hint to run--snapshot. -
#8332
e542a48Thanks @gultekinmakif! - Fixed a crash that could occur when a network returned an unexpected response while resolving the default sender account -
#8385
946e379Thanks @BROCCOLO1D! - When a Hardhat 2 plugin calls an API that no longer exists in Hardhat 3, the error now names the specific API that was used and explains how to migrate it to Hardhat 3. -
Updated dependencies:
- @nomicfoundation/hardhat-errors@3.0.16
- @nomicfoundation/hardhat-utils@4.1.4
💡 The Nomic Foundation is hiring! Check our open positions.