-
Notifications
You must be signed in to change notification settings - Fork 794
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.
thanks for this,
few smol nits and suggestions
ethers-solc/src/lib.rs
Outdated
@@ -426,6 +426,36 @@ impl<T: ArtifactOutput> Project<T> { | |||
pub fn flatten(&self, target: &Path) -> Result<String> { | |||
self.paths.flatten(target) | |||
} | |||
|
|||
/// Returns standard-json-input to compile the target contract | |||
pub fn standard_json_input(&self, target: &Path) -> Result<String> { |
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'd rather return a the CompilerInput
here instead
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.
@mattsse I make it return string consistent with flatten
. wdyt?
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.
still, I think CompilerInput
would make more sense here and could be useful to for example use it directly with Solc::compile
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.
ok let me update it
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.
@mattsse updated 👍
Motivation
This changes will allows
forge verify-contract
to submit contract verification usingstandard-input-json
format to etherscan.Solution
PR Checklist