From d3a0f7e0d9a853699f1ec2e225348ce14894630f Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Mon, 9 Sep 2024 15:33:41 -0700 Subject: [PATCH] chore: fix clippy --- crates/yttrium/src/smart_accounts/safe.rs | 10 ++++------ crates/yttrium/src/transaction/send/safe_test.rs | 4 +--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/crates/yttrium/src/smart_accounts/safe.rs b/crates/yttrium/src/smart_accounts/safe.rs index 0bce590..f4fe1f1 100644 --- a/crates/yttrium/src/smart_accounts/safe.rs +++ b/crates/yttrium/src/smart_accounts/safe.rs @@ -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}, @@ -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(); diff --git a/crates/yttrium/src/transaction/send/safe_test.rs b/crates/yttrium/src/transaction/send/safe_test.rs index 75db4d6..01a6777 100644 --- a/crates/yttrium/src/transaction/send/safe_test.rs +++ b/crates/yttrium/src/transaction/send/safe_test.rs @@ -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},