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

Can not use Solady #1719

Open
magnetto90 opened this issue Jan 17, 2024 · 2 comments
Open

Can not use Solady #1719

magnetto90 opened this issue Jan 17, 2024 · 2 comments

Comments

@magnetto90
Copy link

magnetto90 commented Jan 17, 2024

Solady does not have a contracts folder and looks like Brownie does not consider it a valid package.

File "brownie/project/main.py", line 907, in _install_from_github
   raise InvalidPackage(
InvalidPackage: Vectorized/[email protected] has no `contracts/` subdirectory, and multiple directories containing source files

if not contract_paths:
raise InvalidPackage(f"{package_id} does not contain any .sol or .vy files")
if install_path.joinpath("contracts").is_dir():
brownie_config["project_structure"]["contracts"] = "contracts"
elif len(contract_paths) == 1:
brownie_config["project_structure"]["contracts"] = contract_paths.pop()
else:
raise InvalidPackage(
f"{package_id} has no `contracts/` subdirectory, and "
"multiple directories containing source files"
)

@magnetto90
Copy link
Author

workaround: Install Solady using forge and then configure remappings in brownie config file.

@VersoriumX
Copy link

Ty

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