metaplex-foundation / mpl-token-metadata

Program to attach additional data to Fungible or Non-Fungible tokens on Solana.
https://developers.metaplex.com/token-metadata
Other
99 stars 42 forks source link

add tokenRecord test #25

Closed MarkSackerberg closed 11 months ago

MarkSackerberg commented 11 months ago

Currently it's possible to run transferV1 to transfer a pNFT with amount 0. It results in the tokenRecord being closed for ownerA and is created for ownerB, but the pNFT itself stays with ownerA. The pNFT then is stuck.

This test is to proove the issue.

Case where something like this happened in mainnet-beta: 3JRzySrxayxC4kvyTy8Pt15moWYbdzkyhPwt9w9w9NGEy6ssj21FkrA4jt35FGpKqzM1cfEhwH5XwGJrsUVPSwJC