Skip to content

Commit

Permalink
return all of gPA data to fix reveal (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvanderwaal authored Jul 4, 2023
1 parent ac95d44 commit 7957f08
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use console::{style, Style};
use dialoguer::theme::ColorfulTheme;
pub use indicatif::{ProgressBar, ProgressStyle};
use mpl_token_metadata::ID as TOKEN_METADATA_PROGRAM_ID;
use solana_account_decoder::{UiAccountEncoding, UiDataSliceConfig};
use solana_account_decoder::UiAccountEncoding;
use solana_client::{
rpc_client::RpcClient,
rpc_config::{RpcAccountInfoConfig, RpcProgramAccountsConfig},
Expand Down Expand Up @@ -225,17 +225,11 @@ fn get_cm_creator_accounts(
creator.as_ref(),
));

// We only need the pubkeys, not the actual account data.
let data_slice = Some(UiDataSliceConfig {
offset: 0,
length: 0,
});

let config = RpcProgramAccountsConfig {
filters: Some(vec![creator_filter]),
account_config: RpcAccountInfoConfig {
encoding: Some(UiAccountEncoding::Base64),
data_slice,
data_slice: None,
commitment: Some(CommitmentConfig {
commitment: CommitmentLevel::Confirmed,
}),
Expand Down

0 comments on commit 7957f08

Please sign in to comment.