From c702b866f4dd0bd0eec72528552129b8c24ccb48 Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Mon, 13 Apr 2026 18:00:53 -0300 Subject: [PATCH 1/2] Remove incorrect shouldBeReported flags from error descriptors --- packages/hardhat-errors/src/descriptors.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/hardhat-errors/src/descriptors.ts b/packages/hardhat-errors/src/descriptors.ts index c442fdf5e47..412db47a0ed 100644 --- a/packages/hardhat-errors/src/descriptors.ts +++ b/packages/hardhat-errors/src/descriptors.ts @@ -356,7 +356,6 @@ You can learn how to use Hardhat by reading the [Getting Started guide](/getting }, DUPLICATED_PLUGIN_ID: { number: 2, - shouldBeReported: true, messageTemplate: 'Duplicated plugin id "{id}" found. Did you install multiple versions of the same plugin?', websiteTitle: "Duplicated plugin id", @@ -1501,7 +1500,6 @@ Please use the fully qualified name of the contract to disambiguate it.`, }, UNKNOWN_TRANSACTION_TYPE: { number: 10110, - shouldBeReported: true, messageTemplate: `Unknown transaction type: "{type}"`, websiteTitle: "Hardhat Ignition was unable to display an unknown transaction type", @@ -1530,7 +1528,6 @@ Please use the fully qualified name of the contract to disambiguate it.`, }, VISUALIZATION_TEMPLATE_DIR_NOT_FOUND: { number: 10114, - shouldBeReported: true, messageTemplate: `Unable to find template directory: "{templateDir}"`, websiteTitle: "Visualization template directory not found", websiteDescription: "Visualization template directory not found", @@ -2845,7 +2842,6 @@ Please check the returned message for details.`, CONTRACT_VERIFICATION_UNEXPECTED_RESPONSE: { number: 80025, messageTemplate: `The block explorer API returned an unexpected message: "{message}". Please report this issue to the Hardhat team.`, - shouldBeReported: true, websiteTitle: "Unexpected API response during contract verification", websiteDescription: `The block explorer API returned a message that doesn't match the expected format. This may indicate a change in the API or an issue with the request. From 49ec5d0cd4ddfaa97ec1fe1838d781cc41e53d72 Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Wed, 15 Apr 2026 10:27:23 -0300 Subject: [PATCH 2/2] Add changeset --- .changeset/dont-report-expected-errors.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changeset/dont-report-expected-errors.md diff --git a/.changeset/dont-report-expected-errors.md b/.changeset/dont-report-expected-errors.md new file mode 100644 index 00000000000..10c1309daf2 --- /dev/null +++ b/.changeset/dont-report-expected-errors.md @@ -0,0 +1,8 @@ +--- +"hardhat": patch +"@nomicfoundation/hardhat-ignition": patch +"@nomicfoundation/hardhat-verify": patch +"@nomicfoundation/hardhat-errors": patch +--- + +Don't report HardhatErrors that aren't bugs