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
-
I keep getting this error in my config file, how do i fix it? |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Jul 1, 2022
Replies: 1 comment 3 replies
-
@Benrockiee check whether you are getting the RPC URL from the env file by console logging it. and do this instead: And etherscan part should be outside networks object. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Benrockiee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.