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

No convinient way to add interfaces to hardhat project #49

Open
airled opened this issue Jul 27, 2024 · 1 comment
Open

No convinient way to add interfaces to hardhat project #49

airled opened this issue Jul 27, 2024 · 1 comment

Comments

@airled
Copy link

airled commented Jul 27, 2024

Hi there. I want to develop a badge contract but seems like there is no convinient way to add desired contracts/interfaces to my hardhat project (like @openzeppelin/contracts or @ethereum-attestation-service/eas-contracts).
For example. I want to create a simple badge contract. I want to add ScrollBadgeAccessControl, ScrollBadgeSingleton, ScrollBadge interfaces. There are two options: add them with direct http github links or copypaste every error/interface/contract manually by myself.
I can't add the links because hardhat does not support imports with https links

Error HH406: Invalid import https://github.com/scroll-tech/canvas-contracts/blob/master/src/badge/extensions/ScrollBadgeAccessControl.sol from contracts/main/ConftBadge.sol. Hardhat doesn't support imports via https.

Adding everything manually is really inconvinient.
Seems like it could be really nice to have some simple npm lib like scroll already did here.

@Africa-metaverse
Copy link

true scroll had good a.i e.g.. works like a charm...

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