Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I am trying to transfer a pNFT via an anchor program, but it is failing at the TokenProgram.
As Serban pointed out in the comments, it is because the destination token account is the same as the origin token account
destination token account
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.
Required, but never shown