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

Misleading error: "Could not find target contract" #120

Open
MegaRedHand opened this issue Nov 26, 2024 · 0 comments
Open

Misleading error: "Could not find target contract" #120

MegaRedHand opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MegaRedHand
Copy link
Collaborator

Describe the bug

When running deployment scripts with a single contract named differently than the file, deployment fails and the task logs end with "Could not find target contract".

To Reproduce

Running this local hello-world example results in that error because of Layr-Labs/hello-world-avs#97. This doesn't happen with the remote example because forge script automatically fills the contract name with the only contract inside the files. Since we flatten local scripts, however, this doesn't work for the local example.

Expected behavior

The contract name is auto-filled same as when running forge script locally.

@MegaRedHand MegaRedHand added the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant