Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
token-2022: Update initialize_immutable_owner to use Pod types (#6409)
Browse files Browse the repository at this point in the history
Update initialize_immutable_owner to use Pod types
  • Loading branch information
joncinque authored Mar 12, 2024
1 parent 25d02fe commit ad933f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token/program-2022/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ impl Processor {
let token_account_info = next_account_info(account_info_iter)?;
let token_account_data = &mut token_account_info.data.borrow_mut();
let mut token_account =
StateWithExtensionsMut::<Account>::unpack_uninitialized(token_account_data)?;
PodStateWithExtensionsMut::<PodAccount>::unpack_uninitialized(token_account_data)?;
token_account
.init_extension::<ImmutableOwner>(true)
.map(|_| ())
Expand Down

0 comments on commit ad933f7

Please sign in to comment.