Skip to content

Commit

Permalink
Fix slicing for no reason (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Plant authored Mar 14, 2024
1 parent 01a5627 commit 6ce6b06
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions solana/src/burn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,13 @@ impl SolanaNetwork for SolanaRpc {
.into_iter()
.map(|x| x.pubkey)
.unique()
.take(MAX_RECENT_PRIORITY_FEE_ACCOUNTS)
.collect();

// Get a new priority fee. Can't be done in Sync land
let priority_fee = self
.priority_fee
.get_estimate(
&self.provider,
&priority_fee_accounts[..MAX_RECENT_PRIORITY_FEE_ACCOUNTS],
)
.get_estimate(&self.provider, &priority_fee_accounts)
.await
.map_err(SolanaRpcError::RpcClientError)?;

Expand Down

0 comments on commit 6ce6b06

Please sign in to comment.