Skip to content

Cannot read properties of undefined (reading 'includes') #5472

Closed Answered by alymurtazamemon
Bhavik-punmiya asked this question in Q&A
Discussion options

You must be logged in to vote

@Bhavik-punmiya Change these things;

  1. In the helper file;
- const {developmentChains} = ["hardhat", "localhost"];
+ const developmentChains = ["hardhat", "localhost"];
  1. In the helper file;
- const networkConfig = {
-     network: {
-         11155111: {...},
-         31337: {...},
-     },
- }
+ const networkConfig = {
+     11155111: {...},
+     31337: {...},
+ }
  1. In hardhat.config.js file;
- chainID : 31337,
- chainID : 11155111,
+ chainId : 31337,
+ chainId : 11155111,

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Bhavik-punmiya
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Bhavik-punmiya
Comment options

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