github NomicFoundation/hardhat hardhat@3.5.0
Hardhat v3.5.0

5 hours ago

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 08805db Thanks @ChristopherDedominici! - Support EIP-712 cheatcodes in Solidity Test.

  • #8188 d48bbfd Thanks @alcuadrado! - Add --init --template <template-name> to initialize projects in a non-interactive way. Also add --init --templates to get the list of template names.

  • #8312 76c15ff Thanks @alcuadrado! - Update the Hardhat 3 TypeScript project templates for TypeScript 6.

  • #8301 793cc84 Thanks @kanej! - Disable transaction gas cap and block gas limit when running tests under --coverage.

  • #8270 cf2823b Thanks @schaable! - Solidity test configuration now also accepts { profiles: { default: ... } }. Only the default profile 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.solidity is now profile-keyed: read per-profile fields at hre.config.test.solidity.profiles.default.* instead of hre.config.test.solidity.*. Plugins that read the resolved Solidity test config need to be updated.

  • #8298 83b1ae1 Thanks @Wodann! - - Fixed a bug when using a test filter where the setUp function 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.prank cheatcode
    • Added support for instrumentation of Solidity 0.8.35
  • #8264 8452f97 Thanks @alcuadrado! - Export ./package.json so consumers can import the package's manifest.

  • #8310 9f394ec Thanks @js360000! - Fix JSON-RPC error.data shape for revert errors (code 3): return the raw revert hex string directly instead of a { message, txHash, data } wrapper object.

  • #8269 045cb8d Thanks @alcuadrado! - Always load the builtin plugins' type extensions

  • #8301 793cc84 Thanks @kanej! - Respect user config for allowUnlimitedContractSize when running under --coverage.

  • #8259 1d1204f Thanks @kanej! - Fixed build overrides not being respected when running compile

  • #8290 3a15b11 Thanks @gultekinmakif! - Fixed abstract contracts being picked up as test suites by the Solidity test runner (#8203).

  • #8266 325bae1 Thanks @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.


Don't miss a new hardhat release

NewReleases is sending notifications on new releases.