hardhat-starter-kit
hardhat-starter-kit copied to clipboard
Failed to deploy to different networks than default
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.