Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
supernovahs committed Jun 13, 2024
1 parent f5d34e7 commit 901e71c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions crates/chainio/clients/elcontracts/src/writer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
use crate::reader::ELChainReader;
use alloy_primitives::{Address, TxHash, U256};
pub use eigen_types::operator::Operator;
use eigen_utils::{binding::{DelegationManager, StrategyManager, IERC20}, get_signer};
use eigen_utils::{
binding::{DelegationManager, StrategyManager, IERC20},
get_signer,
};
use tracing::info;
use DelegationManager::OperatorDetails;

Expand Down Expand Up @@ -45,8 +48,7 @@ impl ELChainWriter {
delegationApprover: operator.has_delegation_approver_address(),
stakerOptOutWindowBlocks: operator.has_staker_opt_out_window_blocks(),
};
let provider = get_signer(self.signer.clone(),&self.provider);

let provider = get_signer(self.signer.clone(), &self.provider);

let contract_delegation_manager = DelegationManager::new(self.delegation_manager, provider);

Expand Down Expand Up @@ -85,7 +87,7 @@ impl ELChainWriter {
delegationApprover: operator.has_delegation_approver_address(),
stakerOptOutWindowBlocks: operator.has_staker_opt_out_window_blocks(),
};
let provider = get_signer(self.signer.clone(),&self.provider);
let provider = get_signer(self.signer.clone(), &self.provider);

let contract_delegation_manager = DelegationManager::new(self.delegation_manager, provider);

Expand Down Expand Up @@ -118,7 +120,7 @@ impl ELChainWriter {
.get_strategy_and_underlying_erc20_token(strategy_addr)
.await?;
let (_, underlying_token_contract, underlying_token) = tokens;
let provider = get_signer(self.signer.clone(),&self.provider);
let provider = get_signer(self.signer.clone(), &self.provider);

let contract_underlying_token = IERC20::new(underlying_token_contract, &provider);

Expand Down

0 comments on commit 901e71c

Please sign in to comment.