Skip to content

Commit 0fc397d

Browse files
committed
formatting
1 parent 3829930 commit 0fc397d

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

crates/kotlin-ffi/src/lib.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
uniffi::setup_scaffolding!();
22

33
// Force import of this crate to ensure that the code is actually generated
4+
#[cfg(any(
5+
feature = "chain_abstraction_client",
6+
feature = "account_client"
7+
))]
8+
use alloy::primitives::Bytes as FFIBytes;
49
#[allow(unused_imports)]
510
#[allow(clippy::single_component_path_imports)]
611
use yttrium;
12+
#[cfg(any(
13+
feature = "chain_abstraction_client",
14+
feature = "account_client"
15+
))]
16+
use yttrium::call::Call;
717
#[cfg(feature = "account_client")]
818
use {
919
alloy::sol_types::SolStruct,
@@ -18,10 +28,6 @@ use {
1828
smart_accounts::safe::{SignOutputEnum, SignStep3Params},
1929
},
2030
};
21-
#[cfg(any(feature = "chain_abstraction_client", feature = "account_client"))]
22-
use alloy::primitives::Bytes as FFIBytes;
23-
#[cfg(any(feature = "chain_abstraction_client", feature = "account_client"))]
24-
use yttrium::call::Call;
2531
#[cfg(feature = "chain_abstraction_client")]
2632
use {
2733
alloy::{

crates/yttrium/src/uniffi_compat/mod.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ use crate::chain_abstraction::{
2323
amount::Amount,
2424
api::prepare::{Eip155OrSolanaAddress, FundingMetadata},
2525
};
26+
#[cfg(any(
27+
feature = "account_client",
28+
feature = "chain_abstraction_client"
29+
))]
30+
use crate::smart_accounts::account_address::AccountAddress;
31+
#[cfg(feature = "chain_abstraction_client")]
32+
use crate::wallet_service_api::{
33+
AddressOrNative, Asset, AssetData, Erc20Metadata, Erc721Metadata,
34+
NativeMetadata,
35+
};
2636
#[cfg(feature = "solana")]
2737
use {
2838
crate::chain_abstraction::solana::{
@@ -36,13 +46,6 @@ use {
3646
transaction::VersionedTransaction,
3747
},
3848
};
39-
#[cfg(any(feature = "account_client", feature = "chain_abstraction_client"))]
40-
use crate::smart_accounts::account_address::AccountAddress;
41-
#[cfg(feature = "chain_abstraction_client")]
42-
use crate::wallet_service_api::{
43-
AddressOrNative, Asset, AssetData, Erc20Metadata, Erc721Metadata,
44-
NativeMetadata,
45-
};
4649
#[cfg(feature = "sign_client")]
4750
use {
4851
alloy::rpc::json_rpc::Id,

0 commit comments

Comments
 (0)