Skip to content

Hardhat v3.9.1

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Jul 15:56
00ee174

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 81871fd Thanks @tenderdeve! - Explain the unsupported cheatcode eip712HashType(string,string) and point to the documentation for the alternative instead.

  • #8400 2f48724 Thanks @kanej! - Support setting the transaction gas cap in Solidity Tests

  • #8367 82d00fc Thanks @alcuadrado! - Lazy load dependencies to optimize bootstrap time

  • #8391 f3c5727 Thanks @schaable! - Make hardhat test solidity --snapshot-check read-only. It no longer rewrites or deletes .gas-snapshot or snapshots/*.json files, 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 e542a48 Thanks @gultekinmakif! - Fixed a crash that could occur when a network returned an unexpected response while resolving the default sender account

  • #8385 946e379 Thanks @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.