metaplex-foundation / metaplex-program-library

Smart contracts maintained by the Metaplex team
Other
588 stars 513 forks source link

"Program did not complete" error when CPI-ing into Metaplex contracts #516

Closed Reyth3 closed 1 year ago

Reyth3 commented 2 years ago

Hi,

We are building our project on top of the Metaplex library. We're trying to build a collection programatically from our contract and we got it to work technically, but the problem is it only works once every few times we run the JS tests. Sometimes it passes just fine, but often it just throws a "Program could not complete" error and there's no indication whatsoever as to why that's the case. It seems to be happening mostly when trying to call mpl_token_metadata, but I have no way to confirm that. It happens during the transaction simulation stage, so we don't even get any logs related to the issue.

Has anyone else had a similar issue? What can I do when my problem sometimes doesn't complete seemingly withouta good reason?

roederw commented 2 years ago

Can you provide a Transaction we could look at?