Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Sep 9, 2024
1 parent 12ca2ab commit d3a0f7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 4 additions & 6 deletions crates/yttrium/src/smart_accounts/safe.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use alloy::{
dyn_abi::DynSolValue,
primitives::{address, keccak256, Address, Bytes, Uint, U160, U256},
primitives::{address, keccak256, Address, Bytes, Uint, U256},
providers::ReqwestProvider,
sol,
sol_types::{SolCall, SolValue},
Expand Down Expand Up @@ -174,11 +174,9 @@ pub async fn get_account_address(
let initializer = get_initializer_code(owners.clone());
let deployment_code = DynSolValue::Tuple(vec![
DynSolValue::Bytes(creation_code.to_vec()),
DynSolValue::Uint(
Uint::<256, 4>::from(
U160::try_from(SAFE_ERC_7579_LAUNCHPAD_ADDRESS).unwrap(),
),
256,
DynSolValue::FixedBytes(
SAFE_ERC_7579_LAUNCHPAD_ADDRESS.into_word(),
32,
),
])
.abi_encode_packed();
Expand Down
4 changes: 1 addition & 3 deletions crates/yttrium/src/transaction/send/safe_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ mod tests {
dyn_abi::{DynSolValue, Eip712Domain},
network::Ethereum,
primitives::{Address, Bytes, FixedBytes, Uint, U128, U256},
providers::{
ext::AnvilApi, PendingTransactionConfig, Provider, ReqwestProvider,
},
providers::{ext::AnvilApi, Provider, ReqwestProvider},
signers::{k256::ecdsa::SigningKey, local::LocalSigner, SignerSync},
sol,
sol_types::{SolCall, SolValue},
Expand Down

0 comments on commit d3a0f7e

Please sign in to comment.