paritytech/hardhat-polkadot

refactor constructCommandArgs

Open

#279 建立於 2025年8月14日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (10 fork)auto 404
P2 - Mediumgood first issue

倉庫指標

Star
 (16 star)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南