paritytech/hardhat-polkadot

refactor constructCommandArgs

Open

#279 opened on Aug 14, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (10 forks)auto 404
P2 - Mediumgood first issue

Repository metrics

Stars
 (16 stars)
PR merge metrics
 (PR metrics pending)

Description

📝 Description

The function constructCommandArgs is used every time a user interacts with hardhat. It accepts arguments from cli and hardhat.config. It should only accept one set of arguments and cli + config parameters should be resolved before i.e. cli.port ?? config.port (cli commands take precedence) in function interface. It should look like zksync constructCommandArgs. The logic inside the function is simpler with just if (parameter) then push command. Should be applied to nodeCommands.push and adapterCommands.push

🤔 Motivation

The constructCommandArgs is quite error prone, difficult to debug and it is the most crucial functional in our plugin.

Contributor guide