Skip to content

Commit

Permalink
refactor(mint): use update_metadata_accounts_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvanderwaal committed Apr 15, 2022
1 parent fe8d6c6 commit f9e6090
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use log::{error, info};
use metaboss_lib::decode::*;
use mpl_token_metadata::{
instruction::{
create_master_edition, create_metadata_accounts,
create_master_edition, create_metadata_accounts_v2,
mint_new_edition_from_master_edition_via_token, update_metadata_accounts,
},
ID as TOKEN_METADATA_PROGRAM_ID,
Expand Down Expand Up @@ -561,7 +561,7 @@ pub fn mint(
let (master_edition_account, _pda) =
Pubkey::find_program_address(master_edition_seeds, &metaplex_program_id);

let create_metadata_account_ix = create_metadata_accounts(
let create_metadata_account_ix = create_metadata_accounts_v2(
metaplex_program_id,
metadata_account,
mint.pubkey(),
Expand All @@ -575,6 +575,8 @@ pub fn mint(
data.seller_fee_basis_points,
true,
!immutable,
None,
None,
);

let create_master_edition_account_ix = create_master_edition(
Expand Down

0 comments on commit f9e6090

Please sign in to comment.