Skip to content

Update dependency hardhat to v3 - #468

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/hardhat-3.x
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/hardhat-3.x

Conversation

@renovate

@renovate renovate Bot commented Aug 13, 2025 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
hardhat (source) ^2.8.0 → ^3.0.0 age adoption passing confidence

Release Notes

NomicFoundation/hardhat (hardhat)

v3.22.0

Compare Source

Minor Changes
  • #​8832 4f6bcf5 - Thanks @​anaPerezGhiglia! Changed the experimental EIP-2780 support in the Amsterdam hardfork: contract-creation transactions no longer pay a value charge.

  • #​8832 4f6bcf5 - 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 4f6bcf5 - 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 4f6bcf5 - Thanks @​anaPerezGhiglia! Added experimental EIP-8038 support to the Amsterdam hardfork: state-access operations are repriced.

  • #​8832 4f6bcf5 - Thanks @​popescuoctavian! Added the isIsolateMode() cheatcode, which returns whether the running Solidity test is run with isolate.

  • #​8832 4f6bcf5 - 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

v3.21.2

Compare Source

Patch Changes

v3.21.1

Compare Source

Patch Changes
  • #​8753 cd4766d Thanks @​popescuoctavian! - Upgraded EDR to v0.25.0.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Fixed cheatcodes added in forge-std v1.17.0 being reported by their raw selector instead of their name when they are not yet supported.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Fixed calls and gas estimates at the fork block and earlier blocks of a forked network being checked against the transaction gas cap of the local network instead of the cap of the remote chain's hardfork at that block; replays by debug_traceCall and debug_traceTransaction at those blocks use it too.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Removed the Amsterdam hardfork activation on Hoodi, because the upgrade was postponed without a new date, so forking Hoodi no longer uses amsterdam for blocks after the previously scheduled time.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Fixed a crash on macOS when the EDR native addon is loaded from two different paths in one process.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Fixed consecutive startSnapshotGas regions in one Solidity test function including the cheatcode overhead of the previous region in their value.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Fixed calls in Solidity tests run with isolate reverting when the gas forwarded to them is below the EIP-7623 floor of their calldata, while the same call succeeds without isolate.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Fixed calls and creates in Solidity tests run with isolate being checked against the transaction gas cap and the block gas limit, which the enclosing test transaction already satisfies.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Changed Vm.Gas.gasTotalUsed in Solidity tests run with isolate to report the regular gas of the transaction before refunds, with gasRefunded reported separately.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Fixed calls and creates in Solidity tests run with isolate paying a flat 21,000 intrinsic gas instead of the real intrinsic gas of their transaction, which ignored calldata, access lists, authorizations and init code on every hardfork.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Fixed calls and creates in Solidity tests run with isolate reporting zero gas and returning the forwarded gas to the caller when their intrinsic gas or calldata floor exceeded it; they now consume their whole budget.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Changed snapshotGasLastCall, snapshotGasLastFrame and startSnapshotGas/stopSnapshotGas in Solidity tests run with isolate to report the receipt gas of the transaction, so the value no longer depends on the gas forwarded to the call or on refunds.

  • #​8753 cd4766d Thanks @​popescuoctavian! - Fixed EIP-8037 state gas not being accounted for in Solidity tests running on the Amsterdam hardfork, so Vm.Gas.gasStateUsed is now reported, and Vm.Gas.gasTotalUsed excludes state gas that spilled past the reservoir.

  • #​8765 7de90f0 Thanks @​schaable! - Fixed local accounts signing data: "0x" as calldata 0x00, and personal_sign of 0x as a one-byte message.

v3.21.0

Compare Source

Minor Changes
  • #​8747 5309dcd Thanks @​kanej! - Added experimental EIP-7954 support to the Amsterdam hardfork: deployment transactions may carry up to 128 KiB of init code and deploy up to 64 KiB of contract code.
Patch Changes
  • #​8670 1dbf44d Thanks @​schaable! - Fixed a cryptic error when a private key in a network's accounts is invalid.

  • #​8708 c8e13d7 Thanks @​Kropiunig! - Fixed --coverage crashing when generating the report if Hardhat is run from a directory other than the project root (e.g. a subdirectory, or with --config).

  • #​8747 5309dcd Thanks @​kanej! - Upgraded EDR to v0.24.0.

  • #​8747 5309dcd Thanks @​kanej! - Fixed the GASLIMIT opcode returning 1_000_000 while the block gas limit is disabled; it now returns the parent block's gas limit, which the mined block's header already carried.

  • #​8747 5309dcd Thanks @​kanej! - Added the Amsterdam hardfork activation on Hoodi, so forking Hoodi uses amsterdam for blocks after it activates.

  • #​8747 5309dcd Thanks @​kanej! - Fixed simulated OP networks not charging the L1 data fee, so transactions now pay it and their receipts report it.

  • #​8734 4c2a07c Thanks @​mikeua! - Fixed the node:test link in the node:test + viem project template README.

  • #​8655 de7c792 Thanks @​aelmanaa! - Fixed prompts only receiving the first line when input is piped (e.g. printf 'password\npassword\nvalue\n' | npx hardhat keystore set KEY); later prompts now read the following lines instead of the process exiting with an unsettled top-level await.

  • #​8743 ac2776f Thanks @​clippytool! - Fixed the solc compiler list cache not refreshing when it only contains a prerelease build for a requested stable version.

  • #​8751 0a2a248 Thanks @​clippytool! - Fixed peer dependency detection during project initialization when npm's legacy-peer-deps or pnpm's auto-install-peers is explicitly configured.

  • Updated dependencies:

v3.20.0

Compare Source

Minor Changes
  • #​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.

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

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

  • #​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:

v3.19.0

Compare Source

Minor Changes
  • #​8680 0e51fa2 Thanks @​anaPerezGhiglia! - Added experimental EIP-7976 support to the Amsterdam hardfork: the calldata floor cost rises to 64 gas per byte.

  • #​8680 b52d2eb Thanks @​anaPerezGhiglia! - Added experimental EIP-7981 support to the Amsterdam hardfork: access list data costs an extra 64 gas per byte.

  • #​8680 bb62bf6 Thanks @​anaPerezGhiglia! - Added experimental EIP-7997 support to the Amsterdam hardfork: the deterministic CREATE2 factory is now part of the genesis state.

  • #​8680 0e51fa2 Thanks @​anaPerezGhiglia! - Added experimental EIP-8024 support to the Amsterdam hardfork: the DUPN, SWAPN and EXCHANGE opcodes reach stack items beyond DUP16 and SWAP16.

  • #​8680 bb62bf6 Thanks @​anaPerezGhiglia! - Added experimental EIP-8037 support to the Amsterdam hardfork: execution gas and state gas are metered separately, and a block's gasUsed reports the larger.

Patch Changes

v3.18.1

Compare Source

Patch Changes

v3.18.0

Compare Source

Minor Changes
  • #​8574 e28e4f5 Thanks @​anaPerezGhiglia! - Removed the pre-Byzantium hardforks (chainstart, homestead, dao, tangerineWhistle, spuriousDragon) from the accepted hardfork and hardforkHistory values, as EDR cannot execute them.

  • #​8595 562cc0b Thanks @​ChristopherDedominici! - Made ethers derive secp256k1 public keys with EDR's native implementation instead of its pure-JS one, speeding up new Wallet(secretKey), Wallet.createRandom(), HD wallet derivation and computeAddress.

  • #​8590 e2ebf54 Thanks @​schaable! - Added Solidity test profiles, allowing test settings to vary across environments such as local development and CI.

Patch Changes

v3.17.0

Compare Source

Minor Changes
  • #​8501 5faee42 Thanks @​ChristopherDedominici! - Add gasEstimationMode config option to EDR networks, featuring a "noInternalOutOfGas" mode to prevent misleading eth_estimateGas results when internal calls run out of gas.

  • #​8580 8583e24 Thanks @​ChristopherDedominici! - Made ethers use EDR's native Keccak-256 instead of its pure-JS one.

  • #​8210 024b422 Thanks @​renovate! - Update the cryptography dependencies to their latest major versions: @noble/hashes and @noble/ciphers to 2, ethereum-cryptography to 3, and micro-eth-signer to 0.19.

Patch Changes

v3.16.0

Compare Source

Minor Changes

v3.15.0

Compare Source

Minor Changes
Patch Changes

v3.14.0

Compare Source

Minor Changes
  • #​8540 99306ea Thanks @​kanej! - EDR now uses platform specific optionalDependencies, reducing Hardhat's install size.
Patch Changes
  • #​8514 f7c6228 Thanks @​questfever! - Fixed Solidity resolver containment checks for paths whose names share a prefix with the project root, a package source-name root, or node_modules.

  • #​8540 99306ea Thanks @​kanej! - Fixed missing Solidity test stack trace when setUp() fails and stack traces are collected with CollectStackTraces::Always.

  • #​8500 54973b2 Thanks @​SnowingFox! - Fixed the format of fuzz test counterexamples: byte array values such as calldata, sender and address are now printed as hexadecimal strings (e.g. 0x3e2033b3...) instead of comma-separated byte lists.

  • #​8522 8640b4b Thanks @​JasonColapietro! - Remove Holesky testnet (chain id 17000) as a supported chain as it has been shut down.

  • #​8488 edd1069 Thanks @​ChristopherDedominici! - Stores gas snapshot cheatcode values as raw strings and calculates diffs using BigInt.

v3.13.0

Compare Source

Minor Changes
Patch Changes
  • #​8486 2ccd059 Thanks @​Kropiunig! - Fixed the EDR network config validation rejecting mining.interval: 0, a valid value which disables interval mining.

  • #​8490 22667f6 Thanks @​kanej! - Added detection and custom error for failed native binding loads (HHE27) of @nomicfoundation/edr or @nomicfoundation/solidity-analyzer.

  • #​8454 47793de Thanks @​ChristopherDedominici! - Only collect Solidity test stack traces at verbosity level 5 (-vvvvv) and above, fixing excessive memory usage when running large test suites with -vvv/-vvvv.

v3.12.0

Compare Source

Minor Changes
  • #​8442 4904c72 Thanks @​ChristopherDedominici! - Support test name filter negation (--grep-exclude) for Solidity and Mocha tests.

  • #​8472 2a66c2e Thanks @​kanej! - Added experimental EIP-7843 support to the Amsterdam hardfork: blocks now include the slotNumber header field, and the SLOTNUM (0x4b) opcode returns it. EDR has no consensus layer, so the value is simulated: it increments by one per mined block, starting at 0 on a new chain, or from the forked block's slot number when forking.

Patch Changes

v3.11.1

Compare Source

Patch Changes

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 2 times, most recently from cbd9eb3 to 0e9ccd4 Compare August 27, 2025 17:13
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch from 0e9ccd4 to 33fb685 Compare August 31, 2025 09:24
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 3 times, most recently from c9fa39a to e28323e Compare September 10, 2025 21:23
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch from e28323e to 9086b49 Compare September 25, 2025 19:51
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch from 9086b49 to ee121d9 Compare October 8, 2025 16:59
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 2 times, most recently from 93611eb to 20bfc00 Compare October 23, 2025 14:55
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 2 times, most recently from 4c8d1bb to 99b1e61 Compare November 4, 2025 11:11
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 3 times, most recently from 72a5921 to 1e9e224 Compare November 12, 2025 18:55
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 2 times, most recently from 3360d06 to 71d1ef2 Compare November 18, 2025 13:08
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 4 times, most recently from 0e2505f to 25e5489 Compare December 3, 2025 21:10
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch from 25e5489 to ad440b1 Compare December 10, 2025 20:04
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 2 times, most recently from 9b38d6b to 38af324 Compare December 30, 2025 18:36
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 3 times, most recently from 6882a99 to 91d1ad4 Compare January 14, 2026 22:45
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch from 91d1ad4 to e3a22fe Compare January 19, 2026 21:40
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 2 times, most recently from 0861ebc to 70d08e0 Compare February 5, 2026 22:36
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 4 times, most recently from 54636cf to 74f48b3 Compare April 29, 2026 13:04
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 2 times, most recently from 8a383e4 to d53a359 Compare May 4, 2026 14:54
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch from d53a359 to 801facd Compare May 7, 2026 21:31
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 3 times, most recently from 2643c1c to 00e5c2b Compare May 22, 2026 00:45
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 3 times, most recently from 5f2aa09 to 73e7fd9 Compare June 1, 2026 22:43
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 2 times, most recently from b7baebb to 3ea0e10 Compare June 8, 2026 22:27
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch from 3ea0e10 to b20eab7 Compare July 2, 2026 17:15
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 2 times, most recently from 45543dd to c924229 Compare July 16, 2026 23:46
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 3 times, most recently from 184d8ea to 947a96c Compare July 24, 2026 20:52
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch from 947a96c to 58c6dfa Compare July 30, 2026 22:11
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 3 times, most recently from 061055f to fc02550 Compare August 14, 2026 20:56
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 2 times, most recently from 4470cc7 to c7cceaf Compare August 27, 2026 13:16
@renovate
renovate Bot force-pushed the renovate/hardhat-3.x branch 2 times, most recently from a09a1ac to f860078 Compare September 3, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants