-
Notifications
You must be signed in to change notification settings - Fork 795
feat(solc): Multiple Solc Version detection #551
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
#[cfg(not(all(feature = "svm", feature = "async")))] | ||
{ | ||
self.compile_with_version(&self.solc, sources) | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
#[cfg(not(all(feature = "svm", feature = "async")))] | ||
{ | ||
self.compile_with_version(&self.solc, sources) | ||
} |
There was a problem hiding this comment.
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!
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
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.