From a8a29ff77e0f2d57c592e3be86f586541c907e7e Mon Sep 17 00:00:00 2001 From: Alexey Pashinov Date: Sun, 22 Dec 2024 17:37:22 +0100 Subject: [PATCH] test --- src/core/jetton_wallet/mod.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/jetton_wallet/mod.rs b/src/core/jetton_wallet/mod.rs index ad656a9f..d9df5196 100644 --- a/src/core/jetton_wallet/mod.rs +++ b/src/core/jetton_wallet/mod.rs @@ -297,8 +297,8 @@ pub trait JettonWalletSubscriptionHandler: Send + Sync { pub async fn get_token_wallet_details( clock: &dyn Clock, - transport: &dyn Transport, - gql_connection: &dyn GqlConnection, + transport: Arc, + gql_connection: Arc, token_wallet: &MsgAddressInt, ) -> Result<(JettonWalletData, JettonRootData)> { let mut token_wallet_state = match transport.get_contract_state(token_wallet).await? { @@ -309,7 +309,7 @@ pub async fn get_token_wallet_details( }; utils::update_library_cell( - gql_connection, + gql_connection.as_ref(), &mut token_wallet_state.account.storage.state, ) .await?; @@ -336,12 +336,12 @@ pub async fn get_token_wallet_details( } pub async fn get_wallet_data( - gql_connection: &dyn GqlConnection, + gql_connection: Arc, account: ton_block::AccountStuff, ) -> Result { let mut account = account; - utils::update_library_cell(gql_connection, &mut account.storage.state).await?; + utils::update_library_cell(gql_connection.as_ref(), &mut account.storage.state).await?; let token_wallet_state = nekoton_contracts::jetton::TokenWalletContract(ExecutionContext { clock: &SimpleClock, @@ -369,8 +369,8 @@ pub async fn get_token_root_details( pub async fn get_token_root_details_from_token_wallet( clock: &dyn Clock, - transport: &dyn Transport, - gql_connection: &dyn GqlConnection, + transport: Arc, + gql_connection: Arc, token_wallet_address: &MsgAddressInt, ) -> Result<(MsgAddressInt, JettonRootData)> { let mut state = match transport.get_contract_state(token_wallet_address).await? { @@ -380,7 +380,7 @@ pub async fn get_token_root_details_from_token_wallet( } }; - utils::update_library_cell(gql_connection, &mut state.account.storage.state).await?; + utils::update_library_cell(gql_connection.as_ref(), &mut state.account.storage.state).await?; let root_token_contract = nekoton_contracts::jetton::TokenWalletContract(state.as_context(clock)).root()?;