From 45b426df76a1cab1c53b91ddff280506bf7fba69 Mon Sep 17 00:00:00 2001 From: Kyrylo Stepanov Date: Thu, 15 Feb 2024 19:51:32 +0200 Subject: [PATCH] update program's test accordingly to the latest changes regarding TokenStandard --- programs/bubblegum/program/tests/utils/context.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/bubblegum/program/tests/utils/context.rs b/programs/bubblegum/program/tests/utils/context.rs index fd48c5d2..25adfb10 100644 --- a/programs/bubblegum/program/tests/utils/context.rs +++ b/programs/bubblegum/program/tests/utils/context.rs @@ -4,7 +4,9 @@ use super::{ clone_keypair, digital_asset::DigitalAsset, program_test, tree::Tree, BanksResult, DirtyClone, Error, LeafArgs, Result, }; -use bubblegum::state::metaplex_adapter::{Collection, Creator, MetadataArgs, TokenProgramVersion}; +use bubblegum::state::metaplex_adapter::{ + Collection, Creator, MetadataArgs, TokenProgramVersion, TokenStandard as MetadataTokenStandard, +}; use mpl_token_metadata::{ accounts::CollectionAuthorityRecord, instructions::ApproveCollectionAuthorityBuilder, @@ -130,7 +132,7 @@ impl BubblegumTestContext { primary_sale_happened: false, is_mutable: false, edition_nonce: None, - token_standard: None, + token_standard: Some(MetadataTokenStandard::NonFungible), token_program_version: TokenProgramVersion::Original, collection: Some(Collection { verified: false,