Correctly identify which contracts to compile (#44)

* Compile all contracts for a test file

* Fix compilation errors related to paths

* Set the base path if specified
This commit is contained in:
Omar
2025-07-16 14:52:40 +03:00
committed by GitHub
parent c2e65f9e33
commit baa11ad28f
5 changed files with 168 additions and 27 deletions
+8 -3
View File
@@ -89,9 +89,14 @@ impl Input {
return Ok(Bytes::default()); // fallback or deployer — no input
};
let abi = deployed_abis
.get(&self.instance)
.ok_or_else(|| anyhow::anyhow!("ABI for instance '{}' not found", &self.instance))?;
let Some(abi) = deployed_abis.get(&self.instance) else {
tracing::error!(
contract_name = self.instance,
available_abis = ?deployed_abis.keys().collect::<Vec<_>>(),
"Attempted to lookup ABI of contract but it wasn't found"
);
anyhow::bail!("ABI for instance '{}' not found", &self.instance);
};
tracing::trace!("ABI found for instance: {}", &self.instance);