Open bvdaniel opened 10 months ago
It looks like --network
is a hardhat specific flag and yarn, npx or npm will not recognise it .
You can run the deploy script through hardhat and then it works:
hardhat run scripts/deployment/main.js --network localhost
I think that the README should be fixed to reflect this, I run into this issue with a few other commands.
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:
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.