Skip to content

Commit

Permalink
update type with Arc
Browse files Browse the repository at this point in the history
  • Loading branch information
byteZorvin committed Sep 17, 2024
1 parent af5e423 commit 10e5d24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/l3/appchain-utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pub mod errors;
use std::sync::Arc;

use color_eyre::{eyre::eyre, Result};
use starknet_accounts::{Account, Call, ExecutionV1, SingleOwnerAccount};
Expand All @@ -13,7 +14,7 @@ use starknet_signers::LocalWallet;
use std::path::Path;

pub type LocalWalletSignerMiddleware =
SingleOwnerAccount<JsonRpcClient<HttpTransport>, LocalWallet>;
SingleOwnerAccount<Arc<JsonRpcClient<HttpTransport>>, LocalWallet>;

type RpcAccount<'a> = SingleOwnerAccount<&'a JsonRpcClient<HttpTransport>, LocalWallet>;
pub type TransactionExecution<'a> = ExecutionV1<'a, RpcAccount<'a>>;
Expand Down

0 comments on commit 10e5d24

Please sign in to comment.