Skip to content

Commit 76781e9

Browse files
Copilot0xrinegade
andcommitted
Upgrade Solana dependencies to 2.2.7 and SPL token to 7.0
Co-authored-by: 0xrinegade <[email protected]>
1 parent 9a1a931 commit 76781e9

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ tracing-subscriber = { version = "0.3", features = ["json", "env-filter"] }
1818
uuid = { version = "1.0", features = ["v4"] }
1919
once_cell = "1.19"
2020
dashmap = "6.1"
21-
solana-client = "1.18"
22-
solana-sdk = "1.18"
23-
solana-account-decoder = "1.18"
24-
solana-transaction-status = "1.18"
25-
spl-token = "4.0.0"
21+
solana-client = "~2.2"
22+
solana-sdk = "~2.2"
23+
solana-account-decoder = "~2.2"
24+
solana-transaction-status = "~2.2"
25+
spl-token = "7.0"
2626
base64 = "0.22"
2727
bs58 = "0.5"
2828
bincode = "1.3"

src/rpc/accounts.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use solana_sdk::{
1111
commitment_config::CommitmentConfig,
1212
pubkey::Pubkey,
1313
};
14-
use solana_account_decoder::UiAccountEncoding;
1514
use std::time::Instant;
1615

1716
/// Get account balance for a given public key
@@ -367,6 +366,7 @@ pub async fn get_program_accounts_with_config(
367366
min_context_slot: None,
368367
},
369368
with_context: None,
369+
sort_results: None,
370370
};
371371
match client.get_program_accounts_with_config(program_id, config).await {
372372
Ok(accounts) => {
@@ -421,6 +421,7 @@ pub async fn get_largest_accounts(
421421
let config = solana_client::rpc_config::RpcLargestAccountsConfig {
422422
commitment: None,
423423
filter,
424+
sort_results: None,
424425
};
425426

426427
match client.get_largest_accounts_with_config(config).await {

src/rpc/system.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ pub async fn request_airdrop(
464464
client: &RpcClient,
465465
pubkey: &Pubkey,
466466
lamports: u64,
467-
467+
) -> anyhow::Result<Value> {
468468
let signature = client.request_airdrop(pubkey, lamports).await?;
469469
Ok(serde_json::json!({ "signature": signature }))
470470
}

0 commit comments

Comments
 (0)