Skip to content

Commit

Permalink
use get_account from rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Jan 16, 2025
1 parent b8d72cf commit e80af9e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cli/src/feature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1068,11 +1068,7 @@ fn process_revoke(
check_rpc_genesis_hash(&cluster, rpc_client)?;

let fee_payer = config.signers[fee_payer];
let account = rpc_client
.get_multiple_accounts(&[feature_id])?
.into_iter()
.next()
.unwrap();
let account = rpc_client.get_account(&feature_id).ok();

match account.and_then(status_from_account) {
Some(CliFeatureStatus::Pending) => (),
Expand Down

0 comments on commit e80af9e

Please sign in to comment.