Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

feat(solc): Multiple Solc Version detection #551

Merged
merged 13 commits into from
Nov 3, 2021

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Nov 2, 2021

We port over the logic for detecting and automatically using the right solc version from dapptools-rs solc, leveraging the SVM and Async features. If these features are disabled, no automatic solc detection will be done, and it will use the solc version as defined in ethers_solc::Solc's rules.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment on lines +102 to +105
#[cfg(not(all(feature = "svm", feature = "async")))]
{
self.compile_with_version(&self.solc, sources)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be also configureable via some Project settings flag?

Copy link
Owner Author

@gakonst gakonst Nov 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so? Isn't it always better to support auto-detection, if you are OK with the extra dependencies?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right, that's better!

ethers-solc/src/compile.rs Outdated Show resolved Hide resolved
Comment on lines +102 to +105
#[cfg(not(all(feature = "svm", feature = "async")))]
{
self.compile_with_version(&self.solc, sources)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right, that's better!

ethers-solc/src/compile.rs Show resolved Hide resolved
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
@gakonst gakonst merged commit 23fb877 into master Nov 3, 2021
@gakonst gakonst deleted the feat/multi-solc-detection branch November 3, 2021 08:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants