Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions auction-house/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion candy-machine/program/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion candy-machine/program/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[workspace]
[package]
name = "mpl-candy-machine"
version = "3.2.3"
version = "3.2.4"
description = "NFT Candy Machine v2: programmatic and trustless NFT drops."
authors = ["Jordan Prince", "Metaplex Developers <dev@metaplex.com>"]
repository = "https://github.com/metaplex-foundation/metaplex-program-library"
Expand Down
22 changes: 14 additions & 8 deletions candy-machine/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,18 @@ pub mod candy_machine {
&ctx.remaining_accounts[remaining_accounts_counter];
remaining_accounts_counter += 1;

assert_keys_equal(whitelist_token_mint.key(), ws.mint)?;

let keys_check = assert_keys_equal(whitelist_token_mint.key(), ws.mint);
let owner_check = assert_keys_equal(whitelist_burn_authority.key(), *whitelist_token_account.owner);
if keys_check.is_err() || owner_check.is_err() {
punish_bots(
ErrorCode::CandyMachineNotLive,
payer.to_account_info(),
ctx.accounts.candy_machine.to_account_info(),
ctx.accounts.system_program.to_account_info(),
BOT_FEE,
)?;
return Ok(());
}
spl_token_burn(TokenBurnParams {
mint: whitelist_token_mint.clone(),
source: whitelist_token_account.clone(),
Expand Down Expand Up @@ -627,7 +637,7 @@ pub mod candy_machine {
ctx.accounts.collection_master_edition.to_account_info(),
ctx.accounts.collection_authority_record.to_account_info(),
];
let set = invoke_signed(
invoke_signed(
&set_and_verify_collection(
ctx.accounts.token_metadata_program.key(),
ctx.accounts.metadata.key(),
Expand All @@ -641,11 +651,7 @@ pub mod candy_machine {
),
set_collection_infos.as_slice(),
&[&signer_seeds],
);
/// Set will only fail if the above IX fails
if set.is_err() {
return Ok(());
}
)?;
Ok(())
}

Expand Down