Coding-and-Crypto / Rust-Solana-Tutorial

Examples from Rust Solana Tutorial on YouTube!
107 stars 65 forks source link

a issue in mint-nft #6

Open tushar-simform opened 7 months ago

tushar-simform commented 7 months ago

on anchor build

Compiling mpl-token-metadata v1.13.1 error[E0277]: the trait bound T: borsh::de::BorshDeserialize is not satisfied --> src/utils/mod.rs:176:21 176 let result: T = try_from_slice_unchecked(data)?; ^^^^^^^^^^^^^^^^^^^^^^^^ the trait borsh::de::BorshDeserialize is not implemented for T

note: required by a bound in solana_program::borsh::try_from_slice_unchecked --> src/borsh.rs:39:1 help: consider further restricting this bound | 167 | pub fn try_from_slice_checked<T: TokenMetadataAccount + borsh::de::BorshDeserialize>( | +++++++++++++++++++++++++++++

For more information about this error, try rustc --explain E0277. error: could not compile mpl-token-metadata (lib) due to previous error

raiusamakhalid2 commented 4 months ago

i change the version of mpl-token-metadata = "4.1.2" get error : &instructions::create_metadata_accounts_v2( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in instructions

JayAlwaysCodes commented 4 months ago

i am also experiencing same issue, i think the problem is from the code base, needs to be modified to be compatible with the current mpl-token-metadata version