github NomicFoundation/hardhat hardhat@3.20.0
Hardhat v3.20.0

2 hours ago

This release includes a compilation performance improvement and expands support for the upcoming Amsterdam hardfork to include EIP-2780 and EIP-8246. See our Amsterdam Support guide for more details.

Changes

  • #8690 0058149 Thanks @schaable! - Sped up compilation by reading and writing solc's output with JSON.parse and JSON.stringify when memory allows (#8565).

  • #8710 065c858 Thanks @popescuoctavian! - Added experimental EIP-2780 support to the Amsterdam hardfork: intrinsic transaction gas is priced per resource instead of a flat 21,000.

  • #8710 065c858 Thanks @popescuoctavian! - Added experimental EIP-8246 support to the Amsterdam hardfork: a contract that self-destructs in the transaction that created it keeps its balance instead of burning it.

  • #8710 065c858 Thanks @popescuoctavian! - Added the lastFrameGas and snapshotGasLastFrame cheatcodes, which also record CREATE and CREATE2 frames, and deprecated lastCallGas and snapshotGasLastCall in their favour.

  • #8697 8c4d435 Thanks @kediyalua! - Fixed the CORS headers of hardhat node's JSON-RPC server to list the methods it actually serves.

  • #8705 5f5991b Thanks @izzetemredemir! - Fixed config values containing "$$", "$&", "$`" or "$'" being altered when resolved, including inline values. An HD account passphrase with one of these will now derive different accounts than before.

  • #8710 065c858 Thanks @popescuoctavian! - Upgraded EDR to v0.23.0.

  • #8710 065c858 Thanks @popescuoctavian! - Fixed Solidity stack traces not recognising console.log calls made through the Hardhat console address.

  • #8710 065c858 Thanks @popescuoctavian! - Fixed the transaction Value in the hardhat node logs dropping leading zeros of the fractional part (0.01 ETH was logged as 0.1 ETH) and whole amounts ending with a trailing dot.

  • #8710 065c858 Thanks @popescuoctavian! - Fixed JSON-RPC call traces to include calls to precompiles.

  • #8710 065c858 Thanks @popescuoctavian! - Fixed Solidity stack traces after a precompile call, so a failing precompile call is reported as a precompile error and later calls in the same function point at the right line.

  • #8710 065c858 Thanks @popescuoctavian! - Fixed the default gas limit of Solidity test transactions being lowered to the EIP-7825 cap from the Amsterdam hardfork, where the cap bounds execution gas only.

  • #8669 257692d Thanks @schaable! - Fixed Hardhat exiting without an error when a prompt, like the keystore password prompt, has no input to read.

  • #8572 a0a52b9 Thanks @sanskar717! - Fixed a race condition in the solc downloader that would show as spawn ... EACCES.

  • #8642 7f75efb Thanks @spideydotjs! - Improved the error for bare-filename imports of local files (e.g. import "Token.sol"), which now suggests the equivalent relative import instead of reporting invalid npm import syntax.

  • Updated dependencies:

    • @nomicfoundation/hardhat-utils@5.0.0

💡 The Nomic Foundation is hiring! Check our open positions.


Don't miss a new hardhat release

NewReleases is sending notifications on new releases.