We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82470c4 commit ca6b065Copy full SHA for ca6b065
1 file changed
programs/compressed-token/program/src/mint_action/actions/create_mint.rs
@@ -31,6 +31,15 @@ pub fn process_create_mint_action(
31
.create_mint
32
.as_ref()
33
.ok_or(ProgramError::InvalidInstructionData)?;
34
+
35
+ if !pubkey_eq(
36
+ &spl_mint_pda,
37
+ parsed_instruction_data.mint.metadata.mint.array_ref(),
38
+ ) {
39
+ msg!("Invalid mint PDA derivation");
40
+ return Err(ErrorCode::MintActionInvalidMintPda.into());
41
+ }
42
43
// With cpi context this program does not have access
44
// to the address Merkle tree account that is used in the cpi to the light system program.
45
// This breaks the implicit check of new_address_params_assigned.
0 commit comments