Skip to content

Lesson 6 TypeError: Cannot read properties of undefined (reading 'url') #5415

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

You must be logged in to vote

@Bhavik-punmiya I think you forgot the network object here;

networks:{
  accounts: [PRIVATE_KEY],
  url: process.env.SEPOLIA_RPC_URL,
  chainId: 11155111,
}

it should be like this;

networks:{
  sepolia: {
       accounts: [PRIVATE_KEY],
       url: process.env.SEPOLIA_RPC_URL,
       chainId: 11155111,
  }
}

Replies: 1 comment 1 reply

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
2 participants