paritytech/hardhat-polkadot

refactor constructCommandArgs

Open

#279 aperta il 14 ago 2025

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (10 fork)auto 404
P2 - Mediumgood first issue

Metriche repository

Star
 (16 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

📝 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.

Guida contributor