Refactored dependencies

This commit is contained in:
activecoder10
2025-07-04 12:37:56 +03:00
parent a0279f0c0c
commit c5ab27ed82
6 changed files with 31 additions and 18 deletions
+2
View File
@@ -10,6 +10,8 @@ rust-version.workspace = true
[dependencies]
alloy = { workspace = true }
alloy-primitives = { workspace = true }
alloy-sol-types = { workspace = true }
anyhow = { workspace = true }
log = { workspace = true }
semver = { workspace = true }
+6
View File
@@ -126,6 +126,8 @@ impl Input {
.get(&self.instance)
.ok_or_else(|| anyhow::anyhow!("ABI for instance '{}' not found", &self.instance))?;
log::trace!("ABI found for instance: {}", &self.instance);
// Find function by selector
let function = abi
.functions()
@@ -138,6 +140,8 @@ impl Input {
)
})?;
log::trace!("Functions found for instance: {}", &self.instance);
// Parse calldata
let calldata_args = match &self.calldata {
Some(Calldata::Compound(args)) => args,
@@ -152,6 +156,8 @@ impl Input {
);
}
log::trace!("Starting encoding ABI's paramters for instance: {}", &self.instance);
let mut encoded = selector.to_vec();
for (i, param) in function.inputs.iter().enumerate() {