What are namedAccounts? #3082
Answered
by
RoboCrypter
shakilkhan12
asked this question in
Q&A
-
I'm a little bit confused about the below code. Can someone explain to me the below code, in the deployer object first we have default key and it has 0 value second we have 1 key and it has 0 value so these values and keys are confusing for me. namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
1: 0, // similarly on mainnet it will take the first account as deployer. Note though that depending on how hardhat network are configured, the account 0 on one network can be different than on another
},
}, |
Beta Was this translation helpful? Give feedback.
Answered by
RoboCrypter
Oct 5, 2022
Replies: 1 comment 3 replies
-
default: 0 means the, Account : 0 from the hardhat node is deployer's account in your local deployment. And, 1: 0 means that, on the mainnet deployment the first account from your wallet will be the the deployer's account. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
shakilkhan12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@shakilkhan12 :
default: 0 means the, Account : 0 from the hardhat node is deployer's account in your local deployment.
And, 1: 0 means that, on the mainnet deployment the first account from your wallet will be the the deployer's account.