Skip to content

Commit

Permalink
use PodStateWithExtensions instead of StateWithExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim-crypto committed Oct 24, 2024
1 parent 1213b10 commit 1c3c19b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use {
set_account_type,
transfer_fee::TransferFeeConfig,
transfer_hook, BaseStateWithExtensions, BaseStateWithExtensionsMut,
PodStateWithExtensions, PodStateWithExtensionsMut, StateWithExtensions,
PodStateWithExtensions, PodStateWithExtensionsMut,
},
instruction::{decode_instruction_data, decode_instruction_type},
pod::{PodAccount, PodMint},
Expand Down Expand Up @@ -149,7 +149,7 @@ fn reallocate_for_configure_account_with_registry<'a>(
) -> ProgramResult {
let mut current_extension_types = {
let token_account = token_account_info.data.borrow();
let account = StateWithExtensions::<Account>::unpack(&token_account)?;
let account = PodStateWithExtensions::<PodAccount>::unpack(&token_account)?;
account.get_extension_types()?
};
current_extension_types.push(ExtensionType::ConfidentialTransferAccount);
Expand Down

0 comments on commit 1c3c19b

Please sign in to comment.