Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

Can't reference to ethers in hardhat tests #15

@OlivierKobialka

Description

@OlivierKobialka

PR: #14

Error

1) ================= PropertyNft Unit Tests =================
     "before each" hook for "Initializes the contract correctly":
   TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')

Code

beforeEach(async (): Promise<void> => {
    Nft = (await ethers.getContractFactory(
        "PropertyNft",
    )) as PropertyNft__factory;
    nft = await Nft.deploy(nftDeployer, nftName, nftSymbol);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions