metaplex-foundation / candy-machine-ui

Reference minting UI implementation for the Metaplex Candy Machine Program
candy-machine-ui.vercel.app
Apache License 2.0
92 stars 395 forks source link

[Bug]: Candy machine freeze feature breaks minting and causes Anti-bot SOL 0.01 fee message #20

Closed DeepGreenAI closed 1 year ago

DeepGreenAI commented 1 year ago

Feature

When deploying a v2 candy machine with sugar, if the freeze feature is enabled, the minting no longer works.

When minting with freeze feature enabled, the UI will display the following message Mint likely failed! Anti-bot SOL 0.01 fee potentially charged! Check the explorer to confirm the mint failed and if so, make sure you are eligible to mint before trying again.

I have attached two candy machine examples that were deployed to mainnet with 0.001 SOL price for testing.

Candy machine with freeze feature enabled example (not working): Candy machine ID: Ds9X7xZyMLA9aBGTHJeryz6VLSfCqXAuWvA5xfRQQ1yf URL: https://main.d1625ei51xv45f.amplifyapp.com/ config:

{
  "price": 0.001,
  "number": 10,
  "symbol": "WAR",
  "sellerFeeBasisPoints": 500,
  "gatekeeper": null,
  "solTreasuryAccount": "EtYvyMQNN865k8EcLwjPsze8X1YxPgbqqaCcnxsrsQr2",
  "splTokenAccount": null,
  "splToken": null,
  "goLiveDate": "2022-07-27T20:00:00Z",
  "endSettings": {
    "endSettingType": "Amount",
    "number": 10
  },
  "whitelistMintSettings": null,
  "hiddenSettings": null,
  "uploadMethod": "bundlr",
  "awsS3Bucket": null,
  "retainAuthority": true,
  "isMutable": true,
  "freezeTime": 86400,
  "creators": [
    {
      "address": "EtYvyMQNN865k8EcLwjPsze8X1YxPgbqqaCcnxsrsQr2",
      "share": 100
    }
  ]
}

Candy machine without freeze feature example (working): Candy machine ID: 4AyWQw9eop32nRaf1N2Dh6hofmFMv2QtG4WBLBgbkPuT URL: https://working.d1625ei51xv45f.amplifyapp.com/ config:

{
  "price": 0.001,
  "number": 10,
  "symbol": "WAR",
  "sellerFeeBasisPoints": 500,
  "gatekeeper": null,
  "solTreasuryAccount": "EtYvyMQNN865k8EcLwjPsze8X1YxPgbqqaCcnxsrsQr2",
  "splTokenAccount": null,
  "splToken": null,
  "goLiveDate": "2022-07-27T20:00:00Z",
  "endSettings": {
    "endSettingType": "Amount",
    "number": 10
  },
  "whitelistMintSettings": null,
  "hiddenSettings": null,
  "uploadMethod": "bundlr",
  "awsS3Bucket": null,
  "retainAuthority": true,
  "isMutable": true,
  "creators": [
    {
      "address": "EtYvyMQNN865k8EcLwjPsze8X1YxPgbqqaCcnxsrsQr2",
      "share": 100
    }
  ]
}

Ideal solution or implementation

Fix the candy machine UI so that when the freezeTime configuration is added, the mint button still works.

Alternative solutions or implementations

No response

Other context

No response

DeepGreenAI commented 1 year ago

Fixed with https://github.com/metaplex-foundation/candy-machine-ui/pull/21