Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pashinov committed Dec 22, 2024
1 parent 37121eb commit a8a29ff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/core/jetton_wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<dyn Transport>,
gql_connection: Arc<dyn GqlConnection>,
token_wallet: &MsgAddressInt,
) -> Result<(JettonWalletData, JettonRootData)> {
let mut token_wallet_state = match transport.get_contract_state(token_wallet).await? {
Expand All @@ -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?;
Expand All @@ -336,12 +336,12 @@ pub async fn get_token_wallet_details(
}

pub async fn get_wallet_data(
gql_connection: &dyn GqlConnection,
gql_connection: Arc<dyn GqlConnection>,
account: ton_block::AccountStuff,
) -> Result<JettonWalletData> {
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,
Expand Down Expand Up @@ -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<dyn Transport>,
gql_connection: Arc<dyn GqlConnection>,
token_wallet_address: &MsgAddressInt,
) -> Result<(MsgAddressInt, JettonRootData)> {
let mut state = match transport.get_contract_state(token_wallet_address).await? {
Expand All @@ -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()?;
Expand Down

0 comments on commit a8a29ff

Please sign in to comment.