Skip to content

Video 14 Configuring hardhat Export Fix #2

@JaredHightower

Description

@JaredHightower

##TypeError: Cannot read properties of null (reading 'sendTransaction')
Screen Shot 2022-01-06 at 1 26 34 PM

Solution

I was able to figure out what was causing this issue. In video 14 Configuring Hardhat within the Mumbai object change account to accounts. The source of the solution can be found here

module.exports = {
  solidity: "0.8.2",
  networks: {
    mumbai: {
      url: process.env.MUMBAI_RPC,
      account: [process.env.PRIVATE_KEY] // <--- Fix this line: the key should accounts NOT account
    }
  }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions