Skip to content

Commit

Permalink
Fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg committed Aug 11, 2020
1 parent bec0967 commit 1c1513b
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions client/src/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,40 +819,7 @@ impl RpcClient {
)
}

<<<<<<< HEAD
fn accounts_to_token_accounts(
&self,
commitment_config: CommitmentConfig,
pubkey_accounts: Vec<(Pubkey, Account)>,
) -> Vec<(Pubkey, UiTokenAccount)> {
let mut mint_decimals: HashMap<Pubkey, u8> = HashMap::new();
pubkey_accounts
.into_iter()
.filter_map(|(pubkey, account)| {
let mint_pubkey = get_token_account_mint(&account.data)?;
let decimals = mint_decimals.get(&mint_pubkey).cloned().or_else(|| {
let mint = self
.get_token_mint_with_commitment(&mint_pubkey, commitment_config)
.ok()
.map(|response| response.value)
.flatten()?;
mint_decimals.insert(mint_pubkey, mint.decimals);
Some(mint.decimals)
})?;
match parse_token(&account.data, Some(decimals)) {
Ok(TokenAccountType::Account(ui_token_account)) => {
Some((pubkey, ui_token_account))
}
_ => None,
}
})
.collect()
}

pub fn poll_balance_with_timeout_and_commitment(
=======
fn poll_balance_with_timeout_and_commitment(
>>>>>>> 17645ee20... Adapt RpcClient to recent token method changes (#11519)
&self,
pubkey: &Pubkey,
polling_frequency: &Duration,
Expand Down

0 comments on commit 1c1513b

Please sign in to comment.