Skip to content

Commit befe7e1

Browse files
committed
chore: formatting
1 parent f71b511 commit befe7e1

4 files changed

Lines changed: 10 additions & 14 deletions

File tree

crates/contract-clients-common/src/tx_submitter.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
use crate::common::overestimate_gas;
22
use alloy::{
3-
consensus::Transaction,
4-
contract::CallBuilder,
5-
eips::BlockId,
6-
primitives::B256,
7-
providers::Provider,
8-
rpc::types::TransactionReceipt,
9-
sol_types::SolInterface,
3+
consensus::Transaction, contract::CallBuilder, eips::BlockId, primitives::B256,
4+
providers::Provider, rpc::types::TransactionReceipt, sol_types::SolInterface,
105
};
116
use anyhow::{Result, anyhow};
127
use std::fmt::Debug;

simulator/src/erc8004.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
use alloy::primitives::{keccak256, Address, B256, U256};
1+
use alloy::primitives::{Address, B256, U256, keccak256};
22
use anyhow::Result;
33
use clap::Args;
44
use erc_8004_contract_clients::{ContractConfig, Erc8004Client};
55
use state_file::StateFile;
66
use std::sync::Arc;
77
use tracing::{info, warn};
88

9-
use crate::common::{retry_submit, Simulator, DEFAULT_SLOT_MS};
9+
use crate::common::{DEFAULT_SLOT_MS, Simulator, retry_submit};
1010

1111
const STATE_FILE_SIMULATOR: &str = "erc_8004_simulator.env";
1212

simulator/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use anyhow::Result;
22
use clap::Parser;
3-
use tracing_subscriber::{fmt, prelude::*, EnvFilter};
3+
use tracing_subscriber::{EnvFilter, fmt, prelude::*};
44

5+
mod common;
56
mod erc8004;
67
mod nilcc;
7-
mod common;
88

99
#[derive(Parser, Debug)]
1010
#[command(name = "simulator")]

simulator/src/nilcc.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use alloy::primitives::Address;
22
use anyhow::Result;
33
use blacklight_contract_clients::{
4-
htx::{Htx, JsonHtx, NillionHtx, PhalaHtx},
54
BlacklightClient, ContractConfig,
5+
htx::{Htx, JsonHtx, NillionHtx, PhalaHtx},
66
};
77
use chain_args::{ChainArgs, ChainConfig};
88
use clap::Args;
@@ -11,7 +11,7 @@ use state_file::StateFile;
1111
use std::sync::Arc;
1212
use tracing::{info, warn};
1313

14-
use crate::common::{retry_submit, Simulator, DEFAULT_SLOT_MS};
14+
use crate::common::{DEFAULT_SLOT_MS, Simulator, retry_submit};
1515

1616
const STATE_FILE_SIMULATOR: &str = "nilcc_simulator.env";
1717

@@ -129,7 +129,8 @@ impl NilccSimulator {
129129
let mut htx = htxs[idx].clone();
130130
match &mut htx {
131131
Htx::Nillion(NillionHtx::V1(htx)) => {
132-
htx.workload_id.current = format!("{}-{:x}", htx.workload_id.current, nonce);
132+
htx.workload_id.current =
133+
format!("{}-{:x}", htx.workload_id.current, nonce);
133134
}
134135
Htx::Phala(PhalaHtx::V1(htx)) => {
135136
htx.app_compose = format!("{}-{:x}", htx.app_compose, nonce);

0 commit comments

Comments
 (0)