Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect HardhatNetworkAccountsUserConfig Type #5244

Open
zitup opened this issue May 17, 2024 · 0 comments
Open

Incorrect HardhatNetworkAccountsUserConfig Type #5244

zitup opened this issue May 17, 2024 · 0 comments
Assignees

Comments

@zitup
Copy link

zitup commented May 17, 2024

Version of Hardhat

2.22.4

What happened?

accounts of hardhat.config must be HardhatNetworkAccountsUserConfig type when setting hardhat netowrk, but for other networks such as arbitrumSepolia, you should set it to string[], or this error will show up

Error HH8: There's one or more errors in your config file:

  * Invalid account: #0 for network: arbitrumSepolia - Expected string, received object

What is weried is network url refres to HttpNetworkUserConfig.url, but accounts refres to HardhatUserConfig.accounts.

Minimal reproduction steps

  1. npx hardhat init
  2. set different account
  3. deploy

Search terms

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants