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

Commit d331f47

Browse files
authored
token-2022: Remove redundant mint initialization check (#3763)
1 parent 0ff8fe1 commit d331f47

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

token/program-2022/src/processor.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ impl Processor {
6262
}
6363

6464
let mut mint = StateWithExtensionsMut::<Mint>::unpack_uninitialized(&mut mint_data)?;
65-
if mint.base.is_initialized {
66-
return Err(TokenError::AlreadyInUse.into());
67-
}
68-
6965
let extension_types = mint.get_extension_types()?;
7066
if ExtensionType::get_account_len::<Mint>(&extension_types) != mint_data_len {
7167
return Err(ProgramError::InvalidAccountData);

0 commit comments

Comments
 (0)