Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private Key Error #1

Open
chibuikeRichmond opened this issue Mar 15, 2023 · 2 comments
Open

Private Key Error #1

chibuikeRichmond opened this issue Mar 15, 2023 · 2 comments

Comments

@chibuikeRichmond
Copy link

Hello im on the arbitrage course wanna run the npx hardhat test after inserting my private key error msg pop up "Error HH8: There's one or more errors in your config file:

  • Invalid account: #0 for network: testnet - private key too short, expected 32 bytes
  • Invalid account: #0 for network: mainnet - private key too short, expected 32 bytes

To learn more about Hardhat's configuration, please go to https://hardhat.org/config/

@ryn2801
Copy link

ryn2801 commented Apr 25, 2023

Go to Metamask account details and then click export private key. You have to enter password and should get the full private key. Just make sure you have 0x prior to private key. It worked when I saved it after entering private key in. I used Linea Goerli Test net.

@whiteboytiv
Copy link

yes definitely must save the private key file after entering it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants