3

I am trying to transfer a pNFT via an anchor program, but it is failing at the TokenProgram.

Logs below

enter image description here

2
  • Can you please: 1) paste the error logs instead of a screenshot and 2) provide the serialized tx to simulate on explorer.solana.com/tx/inspector Commented Aug 14, 2023 at 16:35
  • 1
    Only thing I can think of is that you're calling the instruction with the destination token account being the same as the source token account.
    – Serban
    Commented Aug 15, 2023 at 17:43

1 Answer 1

1

As Serban pointed out in the comments, it is because the destination token account is the same as the origin token account

Changing it to a new address fixed this.

Though I am not satisfied with this answer because sending the same token to myself using Phantom wallet worked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.