metaplex-foundation / metaplex-program-library

Smart contracts maintained by the Metaplex team
Other
580 stars 510 forks source link

[Bug]: Candy machine not burning the whitelist token #462

Closed sarhugo closed 2 years ago

sarhugo commented 2 years ago

Which package is this bug report for?

candy-machine

Issue description

Hi, doing some tests on devnet I tried to mint 2 nft on a presale even when I had only 1 whitelist token.

The config for the candymachine is the following one:


{
  "price": 0.1,
  "number": 1000, 
  "gatekeeper": null,
  "solTreasuryAccount": "ERiNZZzSdHLjXcvRC4KSy4xaMcSG4xc8MtQ3XWiogYa6",
  "splTokenAccount": null,
  "splToken": null,
  "goLiveDate": "18 May 2022 22:45:00 GMT",
  "endSettings": null,
  "whitelistMintSettings": {
    "mode" : { "burnEveryTime": true },
    "mint" : "geTe4WtQ2XaAgxtnA2BwVXvmvg95CuevnYbLNFgxvpd",
    "presale" : true,
    "discountPrice" : 0
  },
  "hiddenSettings": null,
  "storage": "arweave",
  "ipfsInfuraProjectId": null,
  "ipfsInfuraSecret": null,
  "awsS3Bucket": null,
  "nftStorageKey": null,
  "noRetainAuthority": false,
  "noMutable": false
}

Here you have two transactions, on the first one the token was burnt, in the second one no token was burn:

https://explorer.solana.com/tx/37sdeA3rqGY5qfkTaLgtgPr4aPBZN1cM9D6hkkfL7soGXz1rrp92DJ7ydKgDHW3srfU8rBaFGACq98VTjEHpTavg?cluster=devnet

https://explorer.solana.com/tx/5FeWsY6CRoHUt6CGdX1QB3VfFVnF575Rsx5MpSSRs2h7mBjyvegsRPJhNM79jJoSuokAokMZMt721N6DVKFtVuJC?cluster=devnet

Relevant log output

No response

Priority this issue should have

High (immediate attention needed)

austbot commented 2 years ago

We checked your transaction and you were the candy machine authority.

stegaBOB commented 2 years ago

You didnt get an NFT in the second transaction. You got bot taxed.

austbot commented 2 years ago

lol

sarhugo commented 2 years ago

Yes, later I saw that... Sorry and thanks

sarhugo commented 1 year ago

Ah ok, I didn't know that. Thanks and sorry

El mar, 17 may 2022 a la(s) 16:36, Austin Adams @.***) escribió:

We checked your transaction and you were the candy machine authority.

— Reply to this email directly, view it on GitHub https://github.com/metaplex-foundation/metaplex-program-library/issues/462#issuecomment-1129244380, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHN7KTO564OG2T4KYQHCZ3VKPYLJANCNFSM5WC7SJRQ . You are receiving this because you authored the thread.Message ID: @.*** .com>