Problem in setting PNFT primary sale happened switch to 1 #9
-
Commented the instruction that results in an error. Not sure how to fix this one with PNFT. Program log: Instruction not supported for ProgrammableNonFungible assets. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I looked up the source code of how Metaplex define the 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 Also, I would probably ask this question on Metaplex Github/Discord |
Beta Was this translation helpful? Give feedback.
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 theprocess_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…