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

[fix] use newer @typechain/hardhat module #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

montyanderson
Copy link

Running yarn and then yarn test led to this behavior for me:

$ hardhat test
Creating Typechain artifacts in directory typechain for target ethers-v5
Successfully generated Typechain artifacts!
An unexpected error occurred:

test/AuctionHouse.test.ts:6:64 - error TS2307: Cannot find module '../typechain' or its corresponding type declarations.

6 import { AuctionHouse, BadBidder, TestERC721, BadERC721 } from "../typechain";
                                                                 ~~~~~~~~~~~~~~

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

After a quick google search it led me to the issue dethcrypto/TypeChain#409 which suggests using this module. It now builds and passes all tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant