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
0058149Thanks @schaable! - Sped up compilation by reading and writing solc's output withJSON.parseandJSON.stringifywhen memory allows (#8565). -
#8710
065c858Thanks @popescuoctavian! - Added experimental EIP-2780 support to the Amsterdam hardfork: intrinsic transaction gas is priced per resource instead of a flat 21,000. -
#8710
065c858Thanks @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
065c858Thanks @popescuoctavian! - Added thelastFrameGasandsnapshotGasLastFramecheatcodes, which also recordCREATEandCREATE2frames, and deprecatedlastCallGasandsnapshotGasLastCallin their favour. -
#8697
8c4d435Thanks @kediyalua! - Fixed the CORS headers ofhardhat node's JSON-RPC server to list the methods it actually serves. -
#8705
5f5991bThanks @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
065c858Thanks @popescuoctavian! - Upgraded EDR to v0.23.0. -
#8710
065c858Thanks @popescuoctavian! - Fixed Solidity stack traces not recognisingconsole.logcalls made through the Hardhat console address. -
#8710
065c858Thanks @popescuoctavian! - Fixed the transactionValuein thehardhat nodelogs dropping leading zeros of the fractional part (0.01 ETHwas logged as0.1 ETH) and whole amounts ending with a trailing dot. -
#8710
065c858Thanks @popescuoctavian! - Fixed JSON-RPC call traces to include calls to precompiles. -
#8710
065c858Thanks @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
065c858Thanks @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
257692dThanks @schaable! - Fixed Hardhat exiting without an error when a prompt, like the keystore password prompt, has no input to read. -
#8572
a0a52b9Thanks @sanskar717! - Fixed a race condition in the solc downloader that would show asspawn ... EACCES. -
#8642
7f75efbThanks @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.