Skip to content

Failed to deploy to different networks than default #172

@bvdaniel

Description

@bvdaniel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions