Skip to content

Commit

Permalink
remove size filter from get_program_accounts_with_filter for Delegate…
Browse files Browse the repository at this point in the history
…PositionV0
  • Loading branch information
lthiery committed Dec 20, 2023
1 parent 1600e3f commit de72fa9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cli/positions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ async fn get_accounts_with_prefix(
let helium_dao_id = Pubkey::from_str(HELIUM_DAO_ID)?;
let memcmp = rpc::GetProgramAccountsFilter::Memcmp(rpc::Memcmp::new(0, input));
let accounts = rpc_client
.get_program_accounts_with_filter(
&helium_dao_id,
vec![rpc::GetProgramAccountsFilter::DataSize(196), memcmp],
)
.get_program_accounts_with_filter(&helium_dao_id, vec![memcmp])
.await?;
Ok(accounts)
}
Expand Down

0 comments on commit de72fa9

Please sign in to comment.