Fix the ABI finding logic (#38)

* Fix the ABI finding logic

* Implement ABI fix in the compiler trait impl
This commit is contained in:
Omar
2025-07-18 14:22:51 +03:00
committed by GitHub
parent 854e8d9690
commit 2bee2d5c8b
4 changed files with 92 additions and 50 deletions
+7
View File
@@ -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,