diff --git a/.changeset/abi-bytes-type-leading-zeros.md b/.changeset/abi-bytes-type-leading-zeros.md deleted file mode 100644 index c14a8ece8fb..00000000000 --- a/.changeset/abi-bytes-type-leading-zeros.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/hardhat-utils": patch ---- - -Fixed `encodeAbiParameters` accepting the invalid types `bytes01` to `bytes09` as `bytes1` to `bytes9`. diff --git a/.changeset/abi-encoding-error-any-kind.md b/.changeset/abi-encoding-error-any-kind.md deleted file mode 100644 index 2cce4c02fe2..00000000000 --- a/.changeset/abi-encoding-error-any-kind.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/hardhat-utils": patch ---- - -Made the `kind` argument of `isAbiEncodingError` optional, so it can check for an ABI encoding error of any kind. diff --git a/.changeset/abi-signature-parser.md b/.changeset/abi-signature-parser.md deleted file mode 100644 index 9c854e7bd08..00000000000 --- a/.changeset/abi-signature-parser.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/hardhat-utils": patch ---- - -Added functions to parse human-readable ABI signatures and parameters, and compute their selectors and event topics. diff --git a/.changeset/connect-attempt-timeout.md b/.changeset/connect-attempt-timeout.md deleted file mode 100644 index 44156a57c61..00000000000 --- a/.changeset/connect-attempt-timeout.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/hardhat-utils": patch ---- - -Improved the reliability of network requests on slow or unstable connections. diff --git a/.changeset/coverage-no-compile.md b/.changeset/coverage-no-compile.md deleted file mode 100644 index 5fa43f87bbc..00000000000 --- a/.changeset/coverage-no-compile.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"hardhat": patch -"@nomicfoundation/hardhat-errors": patch ---- - -Running with the `--coverage` flag when no contracts are instrumented (i.e. `--no-compile`) now throws an error ([#8796](https://github.com/NomicFoundation/hardhat/issues/8796)). diff --git a/.changeset/edr-0.25.1.md b/.changeset/edr-0.25.1.md deleted file mode 100644 index 1bee61b4931..00000000000 --- a/.changeset/edr-0.25.1.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": patch ---- - -Upgraded EDR to v0.25.1. diff --git a/.changeset/edr-amsterdam-eip-2780-creation-value.md b/.changeset/edr-amsterdam-eip-2780-creation-value.md deleted file mode 100644 index efa308bd3db..00000000000 --- a/.changeset/edr-amsterdam-eip-2780-creation-value.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": minor ---- - -Thanks @anaPerezGhiglia! Changed the experimental EIP-2780 support in the Amsterdam hardfork: contract-creation transactions no longer pay a value charge. diff --git a/.changeset/edr-amsterdam-eip-7843-slot-cheatcodes.md b/.changeset/edr-amsterdam-eip-7843-slot-cheatcodes.md deleted file mode 100644 index d721e1b50ed..00000000000 --- a/.changeset/edr-amsterdam-eip-7843-slot-cheatcodes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": minor ---- - -Thanks @popescuoctavian! Added the `rollSlot(uint64)` and `getSlotNumber()` cheatcodes, which set and read `block.slotnum` (EIP-7843) in Solidity tests without changing the block number or timestamp; both revert on EVM versions before Amsterdam. diff --git a/.changeset/edr-amsterdam-eip-8037-trace-gas-dimensions.md b/.changeset/edr-amsterdam-eip-8037-trace-gas-dimensions.md deleted file mode 100644 index 7a874cad895..00000000000 --- a/.changeset/edr-amsterdam-eip-8037-trace-gas-dimensions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": minor ---- - -Thanks @anaPerezGhiglia! Added the EIP-8037 gas dimensions to `debug_traceTransaction` and `debug_traceCall` from the Amsterdam hardfork: the default tracer's top-level frame and the `callTracer`'s root call frame report `executionGasUsed`, `stateGasUsed` and `gasRefund`, and each `structLogs` entry reports `stateGasReservoir`, plus a signed `stateGasCost` on the steps that charge or refill state gas. diff --git a/.changeset/edr-amsterdam-eip-8038.md b/.changeset/edr-amsterdam-eip-8038.md deleted file mode 100644 index 580f73685a5..00000000000 --- a/.changeset/edr-amsterdam-eip-8038.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -# docs: https://github.com/NomicFoundation/hardhat-website/pull/327 -"hardhat": minor ---- - -Thanks @anaPerezGhiglia! Added experimental EIP-8038 support to the Amsterdam hardfork: state-access operations are repriced. diff --git a/.changeset/edr-call-trace-memory.md b/.changeset/edr-call-trace-memory.md deleted file mode 100644 index a61887d18b6..00000000000 --- a/.changeset/edr-call-trace-memory.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": patch ---- - -Thanks @anaPerezGhiglia! Reduced the memory simulated networks use to record the call traces of executed transactions and calls. diff --git a/.changeset/edr-fork-slotnum.md b/.changeset/edr-fork-slotnum.md deleted file mode 100644 index 60856e94091..00000000000 --- a/.changeset/edr-fork-slotnum.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": patch ---- - -Thanks @popescuoctavian! Fixed `block.slotnum` returning 0 in forked Solidity tests instead of the forked block's slot number. diff --git a/.changeset/edr-is-isolate-mode-cheatcode.md b/.changeset/edr-is-isolate-mode-cheatcode.md deleted file mode 100644 index a7db3367fe2..00000000000 --- a/.changeset/edr-is-isolate-mode-cheatcode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": minor ---- - -Thanks @popescuoctavian! Added the `isIsolateMode()` cheatcode, which returns whether the running Solidity test is run with `isolate`. diff --git a/.changeset/edr-solidity-test-amsterdam-repeated-deployment-state-gas.md b/.changeset/edr-solidity-test-amsterdam-repeated-deployment-state-gas.md deleted file mode 100644 index 34b6ef1d51b..00000000000 --- a/.changeset/edr-solidity-test-amsterdam-repeated-deployment-state-gas.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": patch ---- - -Thanks @anaPerezGhiglia! Fixed missing EIP-8037 state gas for repeated contract deployments in Solidity tests on the Amsterdam hardfork. diff --git a/.changeset/edr-solidity-test-fork-hardfork.md b/.changeset/edr-solidity-test-fork-hardfork.md deleted file mode 100644 index d9e34edbe79..00000000000 --- a/.changeset/edr-solidity-test-fork-hardfork.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": patch ---- - -Thanks @popescuoctavian! Fixed Solidity tests switching to the default hardfork after `vm.createSelectFork`, `vm.selectFork` or `vm.rollFork`, instead of keeping the configured hardfork or inline `evm_version`. diff --git a/.changeset/edr-state-gas-tracer.md b/.changeset/edr-state-gas-tracer.md deleted file mode 100644 index fc07ddfe6ca..00000000000 --- a/.changeset/edr-state-gas-tracer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": minor ---- - -Thanks @anaPerezGhiglia! Added the `stateGasTracer` to `debug_traceTransaction` and `debug_traceCall`, which reports a transaction's gas in both EIP-8037 dimensions on every hardfork, with zero state gas before Amsterdam. diff --git a/.changeset/empty-byte-array-truncation.md b/.changeset/empty-byte-array-truncation.md deleted file mode 100644 index e3015219933..00000000000 --- a/.changeset/empty-byte-array-truncation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/hardhat-utils": patch ---- - -Fixed `setLengthLeft` returning the whole byte array instead of an empty array when truncating to a length of `0`. diff --git a/.changeset/gas-snapshot-crlf.md b/.changeset/gas-snapshot-crlf.md deleted file mode 100644 index 2b1fba8bbd6..00000000000 --- a/.changeset/gas-snapshot-crlf.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": patch ---- - -Fixed `--snapshot-check` failing with `HHE803` when `.gas-snapshot` has CRLF line endings, as in Windows checkouts. diff --git a/.changeset/hhe11-init-template.md b/.changeset/hhe11-init-template.md deleted file mode 100644 index 78b1671851a..00000000000 --- a/.changeset/hhe11-init-template.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/hardhat-errors": patch ---- - -Updated the `HHE11` error to suggest `--init --template ` when running `--init` without an interactive shell ([#8797](https://github.com/NomicFoundation/hardhat/issues/8797)). diff --git a/.changeset/ignition-non-tty-output.md b/.changeset/ignition-non-tty-output.md deleted file mode 100644 index d89760499a6..00000000000 --- a/.changeset/ignition-non-tty-output.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/hardhat-ignition": patch ---- - -Fixed `ignition deploy` reprinting every batch on each update when its output isn't a terminal ([#8798](https://github.com/NomicFoundation/hardhat/issues/8798)). diff --git a/.changeset/ignition-visualize-path-spaces.md b/.changeset/ignition-visualize-path-spaces.md deleted file mode 100644 index d76d6cfe775..00000000000 --- a/.changeset/ignition-visualize-path-spaces.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/hardhat-ignition": patch ---- - -Fixed `ignition visualize` not opening the report when the project path contains spaces. diff --git a/.changeset/node-fork-cli-config-headers.md b/.changeset/node-fork-cli-config-headers.md deleted file mode 100644 index ee4498c74ae..00000000000 --- a/.changeset/node-fork-cli-config-headers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": patch ---- - -Fixed `hardhat node --fork` sending the configured forking `httpHeaders` to the URL passed on the command line. diff --git a/.changeset/retry-solc-list-download.md b/.changeset/retry-solc-list-download.md deleted file mode 100644 index 47c1aa657b3..00000000000 --- a/.changeset/retry-solc-list-download.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": patch ---- - -Fixed `HHE905` errors on brief network failures by retrying the solc version list download. diff --git a/.changeset/solidity-test-include-traces.md b/.changeset/solidity-test-include-traces.md deleted file mode 100644 index 469692f536d..00000000000 --- a/.changeset/solidity-test-include-traces.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": patch ---- - -Added a hidden `includeTraces` option to `test solidity` so plugins can collect call traces regardless of the verbosity ([#8737](https://github.com/NomicFoundation/hardhat/issues/8737)). diff --git a/.changeset/verify-hardhat-utils-floor.md b/.changeset/verify-hardhat-utils-floor.md deleted file mode 100644 index 7d7523ec568..00000000000 --- a/.changeset/verify-hardhat-utils-floor.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/hardhat-verify": patch ---- - -Fixed an empty `bytes` constructor argument being encoded as one zero byte when an older `@nomicfoundation/hardhat-utils` was installed, by requiring 5.1.1 or later. diff --git a/.changeset/zod-utils-hardhat-utils-floor.md b/.changeset/zod-utils-hardhat-utils-floor.md deleted file mode 100644 index 10dee41600f..00000000000 --- a/.changeset/zod-utils-hardhat-utils-floor.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/hardhat-zod-utils": patch ---- - -Fixed `rpcData` parsing `0x` as a zero byte when an older `@nomicfoundation/hardhat-utils` was installed, by requiring 5.1.1 or later. diff --git a/packages/example-project/package.json b/packages/example-project/package.json index b7ec9a780fd..d743b5d79a9 100644 --- a/packages/example-project/package.json +++ b/packages/example-project/package.json @@ -47,7 +47,7 @@ "chai": "^6.2.2", "ethers": "^6.14.0", "forge-std": "foundry-rs/forge-std#v1.17.0", - "hardhat": "workspace:^3.21.0", + "hardhat": "workspace:^3.22.0", "mocha": "^12.0.0", "permit2": "uniswap/permit2#cc56ad0f3439c502c246fc5cfcc3db92bb8b7219", "prettier": "3.9.10", diff --git a/packages/hardhat-errors/CHANGELOG.md b/packages/hardhat-errors/CHANGELOG.md index 834b9b58b70..2b921533581 100644 --- a/packages/hardhat-errors/CHANGELOG.md +++ b/packages/hardhat-errors/CHANGELOG.md @@ -1,5 +1,13 @@ # @nomicfoundation/hardhat-errors +## 3.1.5 + +### Patch Changes + +- [#8800](https://github.com/NomicFoundation/hardhat/pull/8800) [`4ae2908`](https://github.com/NomicFoundation/hardhat/commit/4ae2908b6fdcdcf95aa58b9f4af59877798c6a90) Thanks [@aelmanaa](https://github.com/aelmanaa)! - Running with the `--coverage` flag when no contracts are instrumented (i.e. `--no-compile`) now throws an error ([#8796](https://github.com/NomicFoundation/hardhat/issues/8796)). + +- [#8801](https://github.com/NomicFoundation/hardhat/pull/8801) [`a06ebbe`](https://github.com/NomicFoundation/hardhat/commit/a06ebbe9a60ca5a7ef4dab28f1f5f663256e0a02) Thanks [@aelmanaa](https://github.com/aelmanaa)! - Updated the `HHE11` error to suggest `--init --template ` when running `--init` without an interactive shell ([#8797](https://github.com/NomicFoundation/hardhat/issues/8797)). + ## 3.1.4 ### Patch Changes diff --git a/packages/hardhat-errors/package.json b/packages/hardhat-errors/package.json index b91daa1b086..a1fc911420d 100644 --- a/packages/hardhat-errors/package.json +++ b/packages/hardhat-errors/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-errors", - "version": "3.1.4", + "version": "3.1.5", "description": "The different errors that Hardhat can throw", "homepage": "https://github.com/NomicFoundation/hardhat/tree/main/packages/hardhat-errors", "repository": { diff --git a/packages/hardhat-ignition/CHANGELOG.md b/packages/hardhat-ignition/CHANGELOG.md index 9c57e45e241..8fd13a9f654 100644 --- a/packages/hardhat-ignition/CHANGELOG.md +++ b/packages/hardhat-ignition/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 3.1.10 + +### Patch Changes + +- [#8802](https://github.com/NomicFoundation/hardhat/pull/8802) [`1bf2e7b`](https://github.com/NomicFoundation/hardhat/commit/1bf2e7b317e259c326f841c10b0f1a8bd24fa3d7) Thanks [@aelmanaa](https://github.com/aelmanaa)! - Fixed `ignition deploy` reprinting every batch on each update when its output isn't a terminal ([#8798](https://github.com/NomicFoundation/hardhat/issues/8798)). + +- [#8837](https://github.com/NomicFoundation/hardhat/pull/8837) [`295e175`](https://github.com/NomicFoundation/hardhat/commit/295e17531facb70741647a070ea443e0036cf888) Thanks [@Iamsohungrynow](https://github.com/Iamsohungrynow)! - Fixed `ignition visualize` not opening the report when the project path contains spaces. + ## 3.1.9 ### Patch Changes diff --git a/packages/hardhat-ignition/package.json b/packages/hardhat-ignition/package.json index 10704859926..dd04564b329 100644 --- a/packages/hardhat-ignition/package.json +++ b/packages/hardhat-ignition/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-ignition", - "version": "3.1.9", + "version": "3.1.10", "description": "Hardhat Ignition is a declarative system for deploying smart contracts on Ethereum. It enables you to define smart contract instances you want to deploy, and any operation you want to run on them. By taking over the deployment and execution, Hardhat Ignition lets you focus on your project instead of getting caught up in the deployment details.", "homepage": "https://github.com/NomicFoundation/hardhat/tree/main/packages/hardhat-ignition", "repository": { diff --git a/packages/hardhat-utils/CHANGELOG.md b/packages/hardhat-utils/CHANGELOG.md index 702f8df16f0..29da937540b 100644 --- a/packages/hardhat-utils/CHANGELOG.md +++ b/packages/hardhat-utils/CHANGELOG.md @@ -1,5 +1,19 @@ # @nomicfoundation/hardhat-utils +## 5.1.2 + +### Patch Changes + +- [#8748](https://github.com/NomicFoundation/hardhat/pull/8748) [`e2c81c4`](https://github.com/NomicFoundation/hardhat/commit/e2c81c4e8a2ddb951e525f8f91811b7911e5e2e7) Thanks [@ChristopherDedominici](https://github.com/ChristopherDedominici)! - Fixed `encodeAbiParameters` accepting the invalid types `bytes01` to `bytes09` as `bytes1` to `bytes9`. + +- [#8755](https://github.com/NomicFoundation/hardhat/pull/8755) [`5c2887e`](https://github.com/NomicFoundation/hardhat/commit/5c2887ea05a2881b6196218493183927850c934e) Thanks [@ChristopherDedominici](https://github.com/ChristopherDedominici)! - Made the `kind` argument of `isAbiEncodingError` optional, so it can check for an ABI encoding error of any kind. + +- [#8748](https://github.com/NomicFoundation/hardhat/pull/8748) [`cd4987c`](https://github.com/NomicFoundation/hardhat/commit/cd4987c947b1ce8f1a5da63b8b8e5f65950a2606) Thanks [@ChristopherDedominici](https://github.com/ChristopherDedominici)! - Added functions to parse human-readable ABI signatures and parameters, and compute their selectors and event topics. + +- [#8712](https://github.com/NomicFoundation/hardhat/pull/8712) [`665c386`](https://github.com/NomicFoundation/hardhat/commit/665c386fc8f62c77e47d180ef31d41cfef5dc04d) Thanks [@schaable](https://github.com/schaable)! - Improved the reliability of network requests on slow or unstable connections. + +- [#8838](https://github.com/NomicFoundation/hardhat/pull/8838) [`9d453de`](https://github.com/NomicFoundation/hardhat/commit/9d453de8770f394b966e4592dee22c79fb98f0b2) Thanks [@zjuncal](https://github.com/zjuncal)! - Fixed `setLengthLeft` returning the whole byte array instead of an empty array when truncating to a length of `0`. + ## 5.1.1 ### Patch Changes diff --git a/packages/hardhat-utils/package.json b/packages/hardhat-utils/package.json index 684acbb853f..7bc66e5956a 100644 --- a/packages/hardhat-utils/package.json +++ b/packages/hardhat-utils/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-utils", - "version": "5.1.1", + "version": "5.1.2", "description": "Utilities for Hardhat and its plugins", "homepage": "https://github.com/NomicFoundation/hardhat/tree/main/packages/hardhat-utils", "repository": { diff --git a/packages/hardhat-verify/CHANGELOG.md b/packages/hardhat-verify/CHANGELOG.md index c0f9402433f..268e7c7c875 100644 --- a/packages/hardhat-verify/CHANGELOG.md +++ b/packages/hardhat-verify/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-verify +## 3.1.5 + +### Patch Changes + +- [#8791](https://github.com/NomicFoundation/hardhat/pull/8791) [`98c2d83`](https://github.com/NomicFoundation/hardhat/commit/98c2d831dc9161c66fdbe998334e8fb590434b1c) Thanks [@aelmanaa](https://github.com/aelmanaa)! - Fixed an empty `bytes` constructor argument being encoded as one zero byte when an older `@nomicfoundation/hardhat-utils` was installed, by requiring 5.1.1 or later. + ## 3.1.4 ### Patch Changes diff --git a/packages/hardhat-verify/package.json b/packages/hardhat-verify/package.json index 45fdea3c8c9..0f812186164 100644 --- a/packages/hardhat-verify/package.json +++ b/packages/hardhat-verify/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-verify", - "version": "3.1.4", + "version": "3.1.5", "description": "Hardhat plugin for verifying contracts", "homepage": "https://github.com/NomicFoundation/hardhat/tree/main/packages/hardhat-verify", "repository": { diff --git a/packages/hardhat-zod-utils/CHANGELOG.md b/packages/hardhat-zod-utils/CHANGELOG.md index 25ca9c1eedd..e87a6d9b801 100644 --- a/packages/hardhat-zod-utils/CHANGELOG.md +++ b/packages/hardhat-zod-utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-zod-utils +## 3.0.9 + +### Patch Changes + +- [#8791](https://github.com/NomicFoundation/hardhat/pull/8791) [`98c2d83`](https://github.com/NomicFoundation/hardhat/commit/98c2d831dc9161c66fdbe998334e8fb590434b1c) Thanks [@aelmanaa](https://github.com/aelmanaa)! - Fixed `rpcData` parsing `0x` as a zero byte when an older `@nomicfoundation/hardhat-utils` was installed, by requiring 5.1.1 or later. + ## 3.0.8 ### Patch Changes diff --git a/packages/hardhat-zod-utils/package.json b/packages/hardhat-zod-utils/package.json index 690320c87b3..8893203ea61 100644 --- a/packages/hardhat-zod-utils/package.json +++ b/packages/hardhat-zod-utils/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-zod-utils", - "version": "3.0.8", + "version": "3.0.9", "description": "Utilities to use Zod to validate Hardhat plugins' config", "homepage": "https://github.com/NomicFoundation/hardhat/tree/main/packages/hardhat-zod-utils", "repository": { diff --git a/packages/hardhat/CHANGELOG.md b/packages/hardhat/CHANGELOG.md index 0b88f20debb..3efb106ac09 100644 --- a/packages/hardhat/CHANGELOG.md +++ b/packages/hardhat/CHANGELOG.md @@ -1,5 +1,43 @@ # hardhat +## 3.22.0 + +### Minor Changes + +- [#8832](https://github.com/NomicFoundation/hardhat/pull/8832) [`4f6bcf5`](https://github.com/NomicFoundation/hardhat/commit/4f6bcf56b17fe7fa04af7cbdde6dc526da1e9663) - Thanks @anaPerezGhiglia! Changed the experimental EIP-2780 support in the Amsterdam hardfork: contract-creation transactions no longer pay a value charge. + +- [#8832](https://github.com/NomicFoundation/hardhat/pull/8832) [`4f6bcf5`](https://github.com/NomicFoundation/hardhat/commit/4f6bcf56b17fe7fa04af7cbdde6dc526da1e9663) - Thanks @popescuoctavian! Added the `rollSlot(uint64)` and `getSlotNumber()` cheatcodes, which set and read `block.slotnum` (EIP-7843) in Solidity tests without changing the block number or timestamp; both revert on EVM versions before Amsterdam. + +- [#8832](https://github.com/NomicFoundation/hardhat/pull/8832) [`4f6bcf5`](https://github.com/NomicFoundation/hardhat/commit/4f6bcf56b17fe7fa04af7cbdde6dc526da1e9663) - Thanks @anaPerezGhiglia! Added the EIP-8037 gas dimensions to `debug_traceTransaction` and `debug_traceCall` from the Amsterdam hardfork: the default tracer's top-level frame and the `callTracer`'s root call frame report `executionGasUsed`, `stateGasUsed` and `gasRefund`, and each `structLogs` entry reports `stateGasReservoir`, plus a signed `stateGasCost` on the steps that charge or refill state gas. + +- [#8832](https://github.com/NomicFoundation/hardhat/pull/8832) [`4f6bcf5`](https://github.com/NomicFoundation/hardhat/commit/4f6bcf56b17fe7fa04af7cbdde6dc526da1e9663) - Thanks @anaPerezGhiglia! Added experimental EIP-8038 support to the Amsterdam hardfork: state-access operations are repriced. + +- [#8832](https://github.com/NomicFoundation/hardhat/pull/8832) [`4f6bcf5`](https://github.com/NomicFoundation/hardhat/commit/4f6bcf56b17fe7fa04af7cbdde6dc526da1e9663) - Thanks @popescuoctavian! Added the `isIsolateMode()` cheatcode, which returns whether the running Solidity test is run with `isolate`. + +- [#8832](https://github.com/NomicFoundation/hardhat/pull/8832) [`4f6bcf5`](https://github.com/NomicFoundation/hardhat/commit/4f6bcf56b17fe7fa04af7cbdde6dc526da1e9663) - Thanks @anaPerezGhiglia! Added the `stateGasTracer` to `debug_traceTransaction` and `debug_traceCall`, which reports a transaction's gas in both EIP-8037 dimensions on every hardfork, with zero state gas before Amsterdam. + +### Patch Changes + +- [#8800](https://github.com/NomicFoundation/hardhat/pull/8800) [`4ae2908`](https://github.com/NomicFoundation/hardhat/commit/4ae2908b6fdcdcf95aa58b9f4af59877798c6a90) Thanks [@aelmanaa](https://github.com/aelmanaa)! - Running with the `--coverage` flag when no contracts are instrumented (i.e. `--no-compile`) now throws an error ([#8796](https://github.com/NomicFoundation/hardhat/issues/8796)). + +- [#8832](https://github.com/NomicFoundation/hardhat/pull/8832) [`4f6bcf5`](https://github.com/NomicFoundation/hardhat/commit/4f6bcf56b17fe7fa04af7cbdde6dc526da1e9663) Thanks [@kanej](https://github.com/kanej)! - Upgraded EDR to v0.25.1. + +- [#8832](https://github.com/NomicFoundation/hardhat/pull/8832) [`4f6bcf5`](https://github.com/NomicFoundation/hardhat/commit/4f6bcf56b17fe7fa04af7cbdde6dc526da1e9663) - Thanks @anaPerezGhiglia! Reduced the memory simulated networks use to record the call traces of executed transactions and calls. + +- [#8832](https://github.com/NomicFoundation/hardhat/pull/8832) [`4f6bcf5`](https://github.com/NomicFoundation/hardhat/commit/4f6bcf56b17fe7fa04af7cbdde6dc526da1e9663) - Thanks @popescuoctavian! Fixed `block.slotnum` returning 0 in forked Solidity tests instead of the forked block's slot number. + +- [#8832](https://github.com/NomicFoundation/hardhat/pull/8832) [`4f6bcf5`](https://github.com/NomicFoundation/hardhat/commit/4f6bcf56b17fe7fa04af7cbdde6dc526da1e9663) - Thanks @anaPerezGhiglia! Fixed missing EIP-8037 state gas for repeated contract deployments in Solidity tests on the Amsterdam hardfork. + +- [#8832](https://github.com/NomicFoundation/hardhat/pull/8832) [`4f6bcf5`](https://github.com/NomicFoundation/hardhat/commit/4f6bcf56b17fe7fa04af7cbdde6dc526da1e9663) - Thanks @popescuoctavian! Fixed Solidity tests switching to the default hardfork after `vm.createSelectFork`, `vm.selectFork` or `vm.rollFork`, instead of keeping the configured hardfork or inline `evm_version`. + +- [#8787](https://github.com/NomicFoundation/hardhat/pull/8787) [`4aa8b87`](https://github.com/NomicFoundation/hardhat/commit/4aa8b87c3cd1cf7f3cb93df9c41513c415e2cb50) Thanks [@Revinand](https://github.com/Revinand)! - Fixed `--snapshot-check` failing with `HHE803` when `.gas-snapshot` has CRLF line endings, as in Windows checkouts. + +- [#8812](https://github.com/NomicFoundation/hardhat/pull/8812) [`c47ee42`](https://github.com/NomicFoundation/hardhat/commit/c47ee4230f18990ffeff595047cf9065f19408f9) Thanks [@AliBaig-xD](https://github.com/AliBaig-xD)! - Fixed `hardhat node --fork` sending the configured forking `httpHeaders` to the URL passed on the command line. + +- [#8712](https://github.com/NomicFoundation/hardhat/pull/8712) [`81fc983`](https://github.com/NomicFoundation/hardhat/commit/81fc98396a5635d0d491c320506c29302dd5b677) Thanks [@schaable](https://github.com/schaable)! - Fixed `HHE905` errors on brief network failures by retrying the solc version list download. + +- [#8824](https://github.com/NomicFoundation/hardhat/pull/8824) [`197263c`](https://github.com/NomicFoundation/hardhat/commit/197263c756104c3e3a7e66992e04f605da297094) Thanks [@aelmanaa](https://github.com/aelmanaa)! - Added a hidden `includeTraces` option to `test solidity` so plugins can collect call traces regardless of the verbosity ([#8737](https://github.com/NomicFoundation/hardhat/issues/8737)). + ## 3.21.2 ### Patch Changes diff --git a/packages/hardhat/package.json b/packages/hardhat/package.json index eb43479cdb7..6ff65b869d3 100644 --- a/packages/hardhat/package.json +++ b/packages/hardhat/package.json @@ -1,6 +1,6 @@ { "name": "hardhat", - "version": "3.21.2", + "version": "3.22.0", "description": "Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.", "homepage": "https://hardhat.org", "repository": { diff --git a/packages/hardhat/templates/01-node-test-runner-viem/package.json b/packages/hardhat/templates/01-node-test-runner-viem/package.json index 65cbf1268d2..274c1fba6cd 100644 --- a/packages/hardhat/templates/01-node-test-runner-viem/package.json +++ b/packages/hardhat/templates/01-node-test-runner-viem/package.json @@ -5,7 +5,7 @@ "description": "A TypeScript Hardhat project using Node Test Runner and Viem", "type": "module", "devDependencies": { - "hardhat": "workspace:^3.21.0", + "hardhat": "workspace:^3.22.0", "@nomicfoundation/hardhat-toolbox-viem": "workspace:^5.0.7", "@nomicfoundation/hardhat-ignition": "workspace:^3.1.8", "@types/node": "^22.8.5", diff --git a/packages/hardhat/templates/02-mocha-ethers/package.json b/packages/hardhat/templates/02-mocha-ethers/package.json index db1ac4174ef..e6d90064c3c 100644 --- a/packages/hardhat/templates/02-mocha-ethers/package.json +++ b/packages/hardhat/templates/02-mocha-ethers/package.json @@ -5,7 +5,7 @@ "description": "A TypeScript Hardhat project using Mocha and Ethers.js", "type": "module", "devDependencies": { - "hardhat": "workspace:^3.21.0", + "hardhat": "workspace:^3.22.0", "@nomicfoundation/hardhat-toolbox-mocha-ethers": "workspace:^4.0.0", "@nomicfoundation/hardhat-ethers": "workspace:^4.2.0", "@nomicfoundation/hardhat-ignition": "workspace:^3.1.8", diff --git a/packages/hardhat/templates/03-minimal/package.json b/packages/hardhat/templates/03-minimal/package.json index fbd93aa4ff8..b83965adddc 100644 --- a/packages/hardhat/templates/03-minimal/package.json +++ b/packages/hardhat/templates/03-minimal/package.json @@ -5,7 +5,7 @@ "description": "A minimal Hardhat project", "type": "module", "devDependencies": { - "hardhat": "workspace:^3.21.0", + "hardhat": "workspace:^3.22.0", "@types/node": "^22.8.5", "typescript": "~6.0.3" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e6076dac96d..e40becacf64 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -305,7 +305,7 @@ importers: specifier: foundry-rs/forge-std#v1.17.0 version: https://codeload.github.com/foundry-rs/forge-std/tar.gz/f3dae6e6ee381f25eb6a246f7da9b85c91a68219 hardhat: - specifier: workspace:^3.21.0 + specifier: workspace:^3.22.0 version: link:../hardhat mocha: specifier: ^12.0.0 @@ -1805,7 +1805,7 @@ importers: specifier: foundry-rs/forge-std#v1.17.0 version: https://codeload.github.com/foundry-rs/forge-std/tar.gz/f3dae6e6ee381f25eb6a246f7da9b85c91a68219 hardhat: - specifier: workspace:^3.21.0 + specifier: workspace:^3.22.0 version: link:../.. typescript: specifier: ~6.0.3 @@ -1872,7 +1872,7 @@ importers: specifier: foundry-rs/forge-std#v1.17.0 version: https://codeload.github.com/foundry-rs/forge-std/tar.gz/f3dae6e6ee381f25eb6a246f7da9b85c91a68219 hardhat: - specifier: workspace:^3.21.0 + specifier: workspace:^3.22.0 version: link:../.. mocha: specifier: ^12.0.0 @@ -1887,7 +1887,7 @@ importers: specifier: ^22.8.5 version: 22.20.5 hardhat: - specifier: workspace:^3.21.0 + specifier: workspace:^3.22.0 version: link:../.. typescript: specifier: ~6.0.3