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

Add support for foundry-style imports #2096

Closed
rajgoesout opened this issue Feb 23, 2022 · 4 comments · Fixed by #2588
Closed

Add support for foundry-style imports #2096

rajgoesout opened this issue Feb 23, 2022 · 4 comments · Fixed by #2588
Assignees

Comments

@rajgoesout
Copy link

Is it possible to support foundry-style imports, using custom remappings?
Refer https://onbjerg.github.io/foundry-book/forge/dependencies.html#remapping-dependencies

@Aniket-Engg
Copy link
Collaborator

Do you mean import for github submodules?

@rajgoesout
Copy link
Author

Yeah

@Aniket-Engg
Copy link
Collaborator

@ImRajdeepB With recent release, Remix provides a way to define the compiler configuration using a json file. Supporting foundry imports on Remix is more about remappings. You can update the compiler settings in compiler_config with these remappings to support standard imports in foundry contract:

"remappings":  [
			"ds-test/=lib/forge-std/lib/ds-test/src/",
			"forge-std/=lib/forge-std/src/"
		],

@Aniket-Engg
Copy link
Collaborator

We will try to add those remapping to compiler config if there is a foundry project in workspace

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

Successfully merging a pull request may close this issue.

2 participants