Skip to content

Lesson 6 - accounts error #5141

Closed Answered by alymurtazamemon
zaeem4 asked this question in Q&A
Discussion options

You must be logged in to vote

@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);
  }
});

Replies: 1 comment

Comment options

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