Replies: 1 comment
-
@0xDeju Yes, this is a variable name, you can name it whatever you want, the actual thing is PRIVATE_KEY, if here let say you gave it private key from metamask account, then the owner of that wallet/account will be the owner. And the owner is not the right word, we can say the deployer of the contract. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Folks,
In lesson 5 deploy.js, we learn about deploying the SimpleStorage contract using Ganache. I find that the context surrounding the wallet variable is still a little unclear to me. Who owns this wallet? Is it the person who deploys the contract, is it the smart contract itself, or something else?
In other words, if I were to revise the naming of the variable, what would be most accurate?
const ownerWallet = new ethers.Wallet(PRIVATE_KEY, provider);
OR
const contractWallet = new ethers.Wallet(PRIVATE_KEY, provider);
Beta Was this translation helpful? Give feedback.
All reactions