diff --git a/.changeset/rude-suits-add.md b/.changeset/rude-suits-add.md new file mode 100644 index 0000000000..40ac03a18b --- /dev/null +++ b/.changeset/rude-suits-add.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fix message for error HH206 diff --git a/packages/hardhat-core/src/internal/core/errors-list.ts b/packages/hardhat-core/src/internal/core/errors-list.ts index 45f5195087..2deacda8a7 100644 --- a/packages/hardhat-core/src/internal/core/errors-list.ts +++ b/packages/hardhat-core/src/internal/core/errors-list.ts @@ -552,7 +552,7 @@ Please use \`runSuper.isDefined\` to make sure that you can call it.`, DEFAULT_VALUE_WRONG_TYPE: { number: 206, message: - "Default value for param %paramName% of task %taskName% doesn't match the default one, try specifying it.", + "Default value for param %paramName% of task %taskName% doesn't match its expected type.", title: "Default value has incorrect type", description: `One of your tasks has a parameter whose default value doesn't match the expected type.