Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 2ff5783

Browse files
committed
use PodStateWithExtensions instead of StateWithExtensions
1 parent 237d453 commit 2ff5783

File tree

1 file changed

+2
-2
lines changed
  • token/program-2022/src/extension/confidential_transfer

1 file changed

+2
-2
lines changed

token/program-2022/src/extension/confidential_transfer/processor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use {
1818
set_account_type,
1919
transfer_fee::TransferFeeConfig,
2020
transfer_hook, BaseStateWithExtensions, BaseStateWithExtensionsMut,
21-
PodStateWithExtensions, PodStateWithExtensionsMut, StateWithExtensions,
21+
PodStateWithExtensions, PodStateWithExtensionsMut,
2222
},
2323
instruction::{decode_instruction_data, decode_instruction_type},
2424
pod::{PodAccount, PodMint},
@@ -149,7 +149,7 @@ fn reallocate_for_configure_account_with_registry<'a>(
149149
) -> ProgramResult {
150150
let mut current_extension_types = {
151151
let token_account = token_account_info.data.borrow();
152-
let account = StateWithExtensions::<Account>::unpack(&token_account)?;
152+
let account = PodStateWithExtensions::<PodAccount>::unpack(&token_account)?;
153153
account.get_extension_types()?
154154
};
155155
current_extension_types.push(ExtensionType::ConfidentialTransferAccount);

0 commit comments

Comments
 (0)