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

Error on "$ npm run build" and "$ forge test" #26

Open
Shoydon opened this issue Aug 5, 2024 · 4 comments
Open

Error on "$ npm run build" and "$ forge test" #26

Shoydon opened this issue Aug 5, 2024 · 4 comments

Comments

@Shoydon
Copy link

Shoydon commented Aug 5, 2024

After cloning the repo, I ran the command npm run build, but I got the following output:
image

When I ran the forge test command, out of 4 test suites, 1 of them failed (the HelloWormholeRefund test), and I didn’t get the required output:
image

I am working on Ubuntu 24.04 LTS on virtualbox
node: v20.15.1
npm: 10.7.0
forge: 0.2.0

Please let me know if I am making any mistakes

@Shoydon Shoydon changed the title Error on "npm run build" and forge test Error on "$ npm run build" and "$ forge test" Aug 5, 2024
@hsyndeniz
Copy link

It's because of build-info in out directory.
You can ignore it by modifying typechain script.

typechain --target ethers-v5 --out-dir ./ts-scripts/ethers-contracts ./out/**/*.sol/*.json

@Shoydon
Copy link
Author

Shoydon commented Aug 11, 2024

It's because of build-info in out directory. You can ignore it by modifying typechain script.

typechain --target ethers-v5 --out-dir ./ts-scripts/ethers-contracts ./out/**/*.sol/*.json

Thanks! That solved the npm run build error but I'm still getting the forge test error
image

@hsyndeniz
Copy link

It seems like only the refund fails. You can try the contract on Remix IDE.

@Shoydon
Copy link
Author

Shoydon commented Aug 11, 2024

It seems like only the refund fails. You can try the contract on Remix IDE.

Yes, I'll try that. Thanks a lot !

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

No branches or pull requests

2 participants