Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I get Metadata of pnfts but got an error about AccountBorrowFailed #118

Open
0xapp123 opened this issue May 28, 2024 · 0 comments
Open

Comments

@0xapp123
Copy link

I tried to get Metadata in mpl-token-metadata 4.1.2.

let nft_metadata = Metadata::safe_deserialize(&mut ctx.accounts.mint_metadata.to_account_info().data.borrow_mut()).unwrap();

And I got this error:

logs: [
    'Program ComputeBudget111111111111111111111111111111 invoke [1]',
    'Program ComputeBudget111111111111111111111111111111 success',
    'Program ComputeBudget111111111111111111111111111111 invoke [1]',
    'Program ComputeBudget111111111111111111111111111111 success',
    'Program 11111111111111111111111111111111 invoke [1]',
    'Program 11111111111111111111111111111111 success',
    'Program HhfZ4hp3MN1uRkY4XGQ21WhfK5RaJtisAgYeqKUsLkZH invoke [1]',
    'Program log: Instruction: InitUser',
    'Program HhfZ4hp3MN1uRkY4XGQ21WhfK5RaJtisAgYeqKUsLkZH consumed 2359 of 599550 compute units',
    'Program HhfZ4hp3MN1uRkY4XGQ21WhfK5RaJtisAgYeqKUsLkZH success',
    'Program HhfZ4hp3MN1uRkY4XGQ21WhfK5RaJtisAgYeqKUsLkZH invoke [1]',
    'Program log: Instruction: LockPnft',
    'Program log: ProgramError occurred. Error Code: AccountBorrowFailed. Error Number: 51539607552. Error Message: Failed to borrow a reference to account data, already borrowed.',
    'Program HhfZ4hp3MN1uRkY4XGQ21WhfK5RaJtisAgYeqKUsLkZH consumed 27326 of 597191 compute units',
    'Program HhfZ4hp3MN1uRkY4XGQ21WhfK5RaJtisAgYeqKUsLkZH failed: instruction tries to borrow reference for an account which is already borrowed'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant