Skip to content

[Bug]: Error Code: LeafAuthorityMustSign when using mpl_bubblegum crate to transfer or burn compressed NFT #1129

@ZYJLiu

Description

@ZYJLiu

Which package is this bug report for?

bubblegum

Which Type of Package is this bug report for?

mpl_bubblegum crate

Issue description

When using the mpl_bubblegum crate to invoke the transfer or burn instruction on the bubblegum program, the CPI fails with LeafAuthorityMustSign.

Here is a minimal Anchor program to reproduce the issue.
https://github.com/ZYJLiu/anchor-cnft-transfer

It contains two instructions:

  • transfer_one: manually builds the CPI to invoke the bubblegum transfer instruction, which works successfully
  • transfer_two: uses the mpl_bubblegum crate to invoke the bubblegum transfer instruction, which fails with LeafAuthorityMustSign error

There is a .env.example file that should be renamed .env which requires a Helius API key to fetch the asset and asset proof to use in the test.

May require downgrading to solana 1.14 for test to run.
solana-install init 1.14.18

Relevant log output

Error: AnchorError thrown in src/lib.rs:1209. Error Code: LeafAuthorityMustSign. Error Number: 6025. Error Message: This transaction must be signed by either the leaf owner or leaf delegate.

Priority this issue should have

High (immediate attention needed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions