Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BurnCollection always fails with Invalid Authority #37

Open
joefitter opened this issue Mar 30, 2024 · 1 comment
Open

BurnCollection always fails with Invalid Authority #37

joefitter opened this issue Mar 30, 2024 · 1 comment

Comments

@joefitter
Copy link
Contributor

joefitter commented Mar 30, 2024

BurnCollectonV1 always fails with invalid authority, when called with CPI, or just using the ts SDK.

Barebones repro:

    const umi = getUmi(authority)
    const collection = generateSigner(umi)

    await createCollectionV1(umi, {
      collection,
      name: "Test Core Collection",
      uri: "",
    }).sendAndConfirm(umi)

    // this throws with Invalid Authority
    await burnCollectionV1(umi, { collection: collection.publicKey, compressionProof: null }).sendAndConfirm(umi)
    const exists = await umi.rpc.accountExists(collection.publicKey)
    console.log({ exists })
Program Logs:
| Program CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d invoke [1]
| Program log: Instruction: BurnCollection
| Program log: checks: {}
| Program log: approved: false rejected false
| Program log: approved: false rejected false
| Program log: Invalid Authority
| Program CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d consumed 6042 of 200000 compute units
| Program CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d failed: custom program error: 0x9
@joefitter
Copy link
Contributor Author

joefitter commented Apr 3, 2024

Fixed in #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant