Skip to content

Commit c5ab27e

Browse files
committed
Refactored dependencies
1 parent a0279f0 commit c5ab27e

File tree

6 files changed

+31
-18
lines changed

6 files changed

+31
-18
lines changed

Cargo.lock

Lines changed: 19 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ revive-dt-node-pool = { version = "0.1.0", path = "crates/node-pool" }
2323
revive-dt-report = { version = "0.1.0", path = "crates/report" }
2424
revive-dt-solc-binaries = { version = "0.1.0", path = "crates/solc-binaries" }
2525

26+
alloy-primitives = "1.2.1"
27+
alloy-sol-types = "1.2.1"
2628
anyhow = "1.0"
2729
clap = { version = "4", features = ["derive"] }
2830
env_logger = "0.11.8"

crates/format/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ rust-version.workspace = true
1010

1111
[dependencies]
1212
alloy = { workspace = true }
13+
alloy-primitives = { workspace = true }
14+
alloy-sol-types = { workspace = true }
1315
anyhow = { workspace = true }
1416
log = { workspace = true }
1517
semver = { workspace = true }

crates/format/src/input.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ impl Input {
126126
.get(&self.instance)
127127
.ok_or_else(|| anyhow::anyhow!("ABI for instance '{}' not found", &self.instance))?;
128128

129+
log::trace!("ABI found for instance: {}", &self.instance);
130+
129131
// Find function by selector
130132
let function = abi
131133
.functions()
@@ -138,6 +140,8 @@ impl Input {
138140
)
139141
})?;
140142

143+
log::trace!("Functions found for instance: {}", &self.instance);
144+
141145
// Parse calldata
142146
let calldata_args = match &self.calldata {
143147
Some(Calldata::Compound(args)) => args,
@@ -152,6 +156,8 @@ impl Input {
152156
);
153157
}
154158

159+
log::trace!("Starting encoding ABI's paramters for instance: {}", &self.instance);
160+
155161
let mut encoded = selector.to_vec();
156162

157163
for (i, param) in function.inputs.iter().enumerate() {

crates/node/src/geth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::{
1616

1717
use alloy::{
1818
network::EthereumWallet,
19-
primitives::{Address, map::HashMap},
19+
primitives::{Address},
2020
providers::{Provider, ProviderBuilder, ext::DebugApi},
2121
rpc::types::{
2222
TransactionReceipt, TransactionRequest,

crates/node/src/kitchensink.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::{
1414
use alloy::{
1515
hex,
1616
network::EthereumWallet,
17-
primitives::{Address, map::HashMap},
17+
primitives::{Address},
1818
providers::{Provider, ProviderBuilder, ext::DebugApi},
1919
rpc::types::{
2020
TransactionReceipt,

0 commit comments

Comments
 (0)