The TaskManager currently validates clashes of named parameter names against the global parameters when a task is added or overridden. However, positional parameter names should also be checked for clashes. The check should be added to the #validateClashesWithGlobalParams method, and the same error (HardhatError.ERRORS.TASK_DEFINITIONS.TASK_PARAMETER_ALREADY_DEFINED) should be thrown in case of a clash.
The
TaskManager
currently validates clashes of named parameter names against the global parameters when a task is added or overridden. However, positional parameter names should also be checked for clashes. The check should be added to the#validateClashesWithGlobalParams
method, and the same error (HardhatError.ERRORS.TASK_DEFINITIONS.TASK_PARAMETER_ALREADY_DEFINED
) should be thrown in case of a clash.