Skip to content

a issue in mint-nft  #6

@tushar-simform

Description

@tushar-simform

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions