Skip to content

HRE accounts vs. burner ones #1004

Answered by carletex
kavehtehrani asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @kavehtehrani thanks for this! This will help us to make SE-2 better and more intuitive.

I understand that hardhat creates account and displays their private keys when running "yarn chain"

Yes! When you are deploying locally, the deployer account in 00_deploy_your_contract.ts is always the first (well the 0th :D) hardhat address (0xf39...).

I am not sure exactly what goes wrong from here, because even though I see myself connected with the address displayed, after this every time I try to do anything I get an error "Internal JSON-RPC error."

This is probably the nonce error that you mention later (metamask can't detect the correct nonce on the hardhat network). It's annoying, yes.

A…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@damianmarti
Comment options

Answer selected by kavehtehrani
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants