NomicFoundation / hardhat

Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
https://hardhat.org
Other
7.04k stars 1.36k forks source link

Environment variable for task parameters #5361

Closed kanej closed 1 month ago

kanej commented 1 month ago

We should support global parameters being passed as environment variables:

See the Hardhat docs for full details.

> NETWORK=sepolia hardhat run ./scripts/my-script.js
alcuadrado commented 1 month ago

Replaced by https://github.com/NomicFoundation/hardhat/issues/5379