Skip to content

ERROR : * Invalid value undefined for HardhatConfig.networks.etherscan.url - Expected a value of type string. #686

Answered by alymurtazamemon
Benrockiee asked this question in Q&A
Discussion options

You must be logged in to vote

@Benrockiee check whether you are getting the RPC URL from the env file by console logging it.

and do this instead: url: process.env.RINKEBY_RPC_URL

And etherscan part should be outside networks object.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Benrockiee
Comment options

@alymurtazamemon
Comment options

@Benrockiee
Comment options

Answer selected by Benrockiee
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