Skip to content

Commit

Permalink
fix minting editions (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvanderwaal authored Oct 18, 2023
1 parent c5efdee commit 20a9499
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,8 @@ fn mint_edition(
1,
)?;

let edition_marker_pda = derive_edition_marker_pda(&metadata_mint, edition_num);

let mint_editions_ix = MintNewEditionFromMasterEditionViaTokenBuilder::new()
.new_metadata(new_metadata)
.new_edition(new_edition)
Expand All @@ -519,6 +521,7 @@ fn mint_edition(
.new_metadata_update_authority(funder.pubkey())
.token_account(assoc)
.token_account_owner(funder.pubkey())
.edition_mark_pda(edition_marker_pda)
.metadata(metadata)
.mint_new_edition_from_master_edition_via_token_args(
MintNewEditionFromMasterEditionViaTokenArgs {
Expand Down

0 comments on commit 20a9499

Please sign in to comment.