Skip to content

Commit

Permalink
chore: Remove Base64Zstd usage from rpc-client (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
petarvujovic98 authored Jan 15, 2025
1 parent f69b24d commit bcf1042
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions rpc-client/src/nonblocking/rpc_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3417,7 +3417,8 @@ impl RpcClient {
commitment_config: CommitmentConfig,
) -> RpcResult<Option<Account>> {
let config = RpcAccountInfoConfig {
encoding: Some(UiAccountEncoding::Base64Zstd),
// encoding: Some(UiAccountEncoding::Base64Zstd), Zstd is not supported by svm-rollup
encoding: Some(UiAccountEncoding::Base64),
commitment: Some(commitment_config),
data_slice: None,
min_context_slot: None,
Expand Down Expand Up @@ -3644,7 +3645,8 @@ impl RpcClient {
self.get_multiple_accounts_with_config(
pubkeys,
RpcAccountInfoConfig {
encoding: Some(UiAccountEncoding::Base64Zstd),
// encoding: Some(UiAccountEncoding::Base64Zstd), Zstd is not supported by svm-rollup
encoding: Some(UiAccountEncoding::Base64),
commitment: Some(commitment_config),
data_slice: None,
min_context_slot: None,
Expand Down Expand Up @@ -3917,7 +3919,8 @@ impl RpcClient {
pubkey,
RpcProgramAccountsConfig {
account_config: RpcAccountInfoConfig {
encoding: Some(UiAccountEncoding::Base64Zstd),
// encoding: Some(UiAccountEncoding::Base64Zstd), Zstd is not supported by svm-rollup
encoding: Some(UiAccountEncoding::Base64),
..RpcAccountInfoConfig::default()
},
..RpcProgramAccountsConfig::default()
Expand Down

0 comments on commit bcf1042

Please sign in to comment.