Skip to content

Commit

Permalink
replace close-account
Browse files Browse the repository at this point in the history
  • Loading branch information
schradeyannik committed Mar 7, 2023
1 parent 9e6e313 commit e9280c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions elusiv-warden-network/src/processor/basic_warden.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use super::close_program_account;
use crate::error::ElusivWardenNetworkError;
use crate::processor::{current_timestamp, unix_timestamp_to_day_and_year};
use crate::warden::{
Expand All @@ -11,7 +10,8 @@ use crate::{
};
use elusiv_types::UnverifiedAccountInfo;
use elusiv_utils::{
guard, open_pda_account_with_associated_pubkey, open_pda_account_with_offset, pda_account,
close_account, guard, open_pda_account_with_associated_pubkey, open_pda_account_with_offset,
pda_account,
};
use solana_program::account_info::AccountInfo;
use solana_program::entrypoint::ProgramResult;
Expand Down Expand Up @@ -190,7 +190,7 @@ pub fn revoke_metadata_attester<'a>(
ElusivWardenNetworkError::InvalidSigner
);

close_program_account(signer, signer, attester_account)?;
close_account(signer, attester_account)?;

let mut warden = warden_account.get_warden();
warden.config.warden_features.attestation = false;
Expand Down

0 comments on commit e9280c4

Please sign in to comment.