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

fix(solc): fix autodetection edge case #2099

Merged
merged 1 commit into from Jan 31, 2023

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jan 31, 2023

Motivation

fixes an autodetection edge case where openzepplin wasn't detected:
https://github.com/ScopeLift/flexible-voting/blob/66bd08b74bf983dcbecc0d806d8d98774a0ecfb4/foundry.toml#L7

Solution

updates a check that attempted to find the first src dir in a set of candidates to check for the only src dir.

the previous check succeeded in opezeppelin dir when it should not.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

@mattsse mattsse force-pushed the matt/fix-multiple-src-candidates branch from 7bda1ed to b902160 Compare January 31, 2023 21:26
@gakonst gakonst merged commit 847b2a4 into gakonst:master Jan 31, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants