Skip to content

Problem in setting PNFT primary sale happened switch to 1 #9

Answered by GabrielePicco
isiik asked this question in Q&A
Discussion options

You must be logged in to vote

I looked up the source code of how Metaplex define the UpdatePrimarySaleHappendViaToken (which seems to be the cause of the issue) and the exception could be potentially triggered at this line: https://github.com/metaplex-foundation/mpl-token-metadata/blob/main/programs/token-metadata/program/src/processor/mod.rs#L175 . There is a check for pNFT before forwarding to the process_legacy.

The check is defined here: https://github.com/metaplex-foundation/mpl-token-metadata/blob/main/programs/token-metadata/program/src/processor/mod.rs#L350.

Not entirely sure, but seems that this instruction is not supported with pNFT. Perhaps the update rules does not allow this kind of update. Does using Upd…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by isiik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #8 on December 12, 2023 00:18.