Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

517
Views
H88 Error: Invalid account: #0 for network: mumbai - Expected string, received undefined

This is my hardhat.config.js file code


module.exports = {
  solidity: "0.8.4",
  networks: {
    hardhat: {
      chainId: 1337
    },
    mumbai: {
      url: "https://rpc-mumbai.matic.today",
      accounts: [process.env.pk]
    },
    // polygon: {
    //   url: "https://polygon-rpc.com/",
    //   accounts: [process.env.pk]
    // }
  }
};

When running npx hardhat test the following error appears:

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

  • Invalid account: #0 for network: mumbai - Expected string, received undefined**

Seems I have a couple of errors with my hardhat.config.js file but can't locate. I am using Nader Dabit's full-stack-web3 tutorial for full stack web3 development.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Correct:

 mumbai: {
  url: "https://rpc-mumbai.matic.today",
  accounts: process.env.pk

Incorrect:

 mumbai: {
  url: "https://rpc-mumbai.matic.today",
  accounts: [process.env.pk] <-- remove the array
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!