hardhat icon indicating copy to clipboard operation
hardhat copied to clipboard

Add support for default values in configuration variables

Open fvictorio opened this issue 1 month ago • 0 comments

Describe the issue

Hardhat 2's configuration variables let you do this:

export const ethMainnetUrl = vars.get(
  "ETH_MAINNET_URL",
  "https://rpc.ankr.com/eth",
);

As far as I know, there is no equivalent functionality in Hardhat 3, nor a way to work around it.

This is a migration blocker for createx.

fvictorio avatar Oct 21 '25 10:10 fvictorio