Merge remote-tracking branch 'origin/main' into feature/better-input-parser

This commit is contained in:
Omar Abdulla
2025-07-16 15:31:33 +03:00
7 changed files with 221 additions and 55 deletions
+8 -3
View File
@@ -93,9 +93,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);