This release has multiple new additions and bug fixes including: support for EIP-712 cheatcodes in Solidity Test, allowing direct project initialization by named template with --init --template <template-name>, and switching to Typescript 6 for new projects.
Changes
-
#8243
08805dbThanks @ChristopherDedominici! - Support EIP-712 cheatcodes in Solidity Test. -
#8188
d48bbfdThanks @alcuadrado! - Add--init --template <template-name>to initialize projects in a non-interactive way. Also add--init --templatesto get the list of template names. -
#8312
76c15ffThanks @alcuadrado! - Update the Hardhat 3 TypeScript project templates for TypeScript 6. -
#8301
793cc84Thanks @kanej! - Disable transaction gas cap and block gas limit when running tests under--coverage. -
#8270
cf2823bThanks @schaable! - Solidity test configuration now also accepts{ profiles: { default: ... } }. Only thedefaultprofile is currently supported, other profile names will be supported in a future release. The previous flat shape continues to work unchanged.The resolved
HardhatConfig.test.solidityis now profile-keyed: read per-profile fields athre.config.test.solidity.profiles.default.*instead ofhre.config.test.solidity.*. Plugins that read the resolved Solidity test config need to be updated. -
#8298
83b1ae1Thanks @Wodann! - - Fixed a bug when using a test filter where thesetUpfunction would be run for empty test suites- Fixed a bug where snapshot cheatcodes would throw an error if names were invalid
- Fixed coverage instrumentation interfering with the single-call
vm.prankcheatcode - Added support for instrumentation of Solidity 0.8.35
-
#8264
8452f97Thanks @alcuadrado! - Export./package.jsonso consumers can import the package's manifest. -
#8310
9f394ecThanks @js360000! - Fix JSON-RPCerror.datashape for revert errors (code 3): return the raw revert hex string directly instead of a{ message, txHash, data }wrapper object. -
#8269
045cb8dThanks @alcuadrado! - Always load the builtin plugins' type extensions -
#8301
793cc84Thanks @kanej! - Respect user config forallowUnlimitedContractSizewhen running under--coverage. -
#8259
1d1204fThanks @kanej! - Fixed build overrides not being respected when runningcompile -
#8290
3a15b11Thanks @gultekinmakif! - Fixedabstractcontracts being picked up as test suites by the Solidity test runner (#8203). -
#8266
325bae1Thanks @schaable! - Sanitized snapshot cheatcode group names to avoid issues when persisting them to disk. A warning is shown when a group is renamed suggesting the user to update their snapshot group names to match the on-disk names. -
Updated dependencies:
- @nomicfoundation/hardhat-errors@3.0.13
- @nomicfoundation/hardhat-utils@4.1.2
- @nomicfoundation/hardhat-vendored@3.0.4
- @nomicfoundation/hardhat-zod-utils@3.0.5
💡 The Nomic Foundation is hiring! Check our open positions.