hardhat-starter-kit icon indicating copy to clipboard operation
hardhat-starter-kit copied to clipboard

Failed to deploy to different networks than default

Open bvdaniel opened this issue 1 year ago • 1 comments

Testing the repo and using env variables for mumbai and polygon RPCs, together with the polygonscan api key, I'm getting this when trying to deploy to another network:

[email protected] deploy hardhat run scripts/deployment/main.js mumbai

Error HH308: Unrecognized positional argument mumbai

Happens the same with sepolia and polygon. Circled it around by changing the defaut network on hardhat.config to deploy on polygon or mumbai. Compiling and testing works ok.

image

bvdaniel avatar Aug 28 '23 18:08 bvdaniel