Lesson 6 - accounts error #5141
-
when I run the command
it gives me following error
can anyone guide me? |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Mar 21, 2023
Replies: 1 comment
-
@zaeem4 The accounts task does not come predefined with the project but you create any task using this This is the task for accounts; task("accounts", "Prints the list of accounts", async () => {
const accounts = await ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zaeem4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@zaeem4 The accounts task does not come predefined with the project but you create any task using this
This is the task for accounts;