mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-10-28 14:39:52 +00:00
Fix the ABI finding logic (#38)
* Fix the ABI finding logic * Implement ABI fix in the compiler trait impl
This commit is contained in:
4 files changed
+92
-50
No files matched your search
@@ -11,6 +11,7 @@ use revive_dt_config::Arguments;
|
||||
use revive_dt_solc_binaries::download_solc;
|
||||
use revive_solc_json_interface::SolcStandardJsonOutput;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Solc {
|
||||
solc_path: PathBuf,
|
||||
}
|
||||
@@ -18,6 +19,7 @@ pub struct Solc {
|
||||
impl SolidityCompiler for Solc {
|
||||
type Options = ();
|
||||
|
||||
#[tracing::instrument(level = "debug", ret)]
|
||||
fn build(
|
||||
&self,
|
||||
input: CompilerInput<Self::Options>,
|
||||
@@ -75,6 +77,11 @@ impl SolidityCompiler for Solc {
|
||||
}
|
||||
}
|
||||
|
||||
tracing::debug!(
|
||||
output = %String::from_utf8_lossy(&output.stdout).to_string(),
|
||||
"Compiled successfully"
|
||||
);
|
||||
|
||||
Ok(CompilerOutput {
|
||||
input,
|
||||
output: parsed,
|
||||
|
||||
Reference in new issue
Block a user