Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/dont-report-expected-errors.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions packages/hardhat-errors/src/descriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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.

Expand Down
Loading