Lesson 14 on NFTs: Errors in Config File #2729
Answered
by
othaime-en
Vic7Eugene
asked this question in
Q&A
-
I have reached Lesson 14 and have cloned Patrick's hardhat-nft-fcc folder. I want to test my BasicNft.sol file, then I encountered these errors: Error HH8: There's one or more errors in your config file:
* Invalid account: #0 for network: goerli - private key too short, expected 32 bytes
* Invalid value undefined for HardhatConfig.networks.mainnet.url - Expected a value of type string.
* Invalid account: #0 for network: mainnet - private key too short, expected 32 bytes I am aware that I need to update some config. Will someone be able to help me where and how to update the configuration. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
othaime-en
Sep 20, 2022
Replies: 1 comment 8 replies
-
Hey @Vic7Eugene you need to create a |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
Vic7Eugene
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Vic7Eugene you need to create a
.env
file that has aPRIVATE_KEY
MAINNET_RPC_URL
andGOERLI_RPC_URL
. Make sure that all the variables in the hardhat.config.js that are being retrieved fromprocess.env
are included in your.env
file.