wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.18k stars 286 forks source link

how to pass deployment script via argument to yarn hardhat deploy cli #389

Open morandalex opened 1 year ago

morandalex commented 1 year ago

Describe the bug I cannot pass the name of the script

To Reproduce Steps to reproduce the behavior:

  1. execute yarn hardhat deploy scripts/deploy.ts --network localhost --export-all ./export/contracts_data.json
  2. See error: Error HH308: Unrecognized positional argument scripts/DeploymentLocal.ts

Expected behavior I expect that I can deploy the specified file, passing it as argument to hardhat, deploy on localhost and export contracts_data.json in export folder.

versions "hardhat-deploy": "^0.9.14", "hardhat-deploy-ethers": "^0.3.0-beta.13", node16