Skip to content

Mocks Deployment issue using tags. #5557

Answered by aaankeet
Mumtaz503 asked this question in Q&A
Discussion options

You must be logged in to vote

@Mumtaz503
change this

  if (developmentChains.includes(chainId)) {

to this, since you are using network names not chainIds.

 if (developmentChains.includes(network.name)) {

if you want to use chainId you can do this

 if (chainId == 31337) {

also there is a typo in your hardhat.config.js you've misspelled defaultNetwork

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Mumtaz503
Comment options

Comment options

You must be logged in to vote
1 reply
@Mumtaz503
Comment options

Comment options

You must be logged in to vote
1 reply
@Mumtaz503
Comment options

Answer selected by Mumtaz503
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants