metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.31k stars 6.27k forks source link

Candy Machine V2 whitelist #1336

Closed shoevan closed 2 years ago

shoevan commented 2 years ago

Describe the bug I can't get the whitelist functioning through the front end provided by the fair launch protocol. I've created an SPL token and have taken the 'Authority' address for the token as the 'mint address' for the whitelist in the Candy Machine V2 config, sent the token to the wallet that is used to connect to the mint page, but no mint button appears when the live date/time is after the current date/time. Does the whitelist functionality not work through the current iteration of the front end? Does the whitelist only work through mainnet and not devnet?

To Reproduce Steps to reproduce the behavior:

  1. Create an SPL token, mint a token and note its authority address
  2. Send the SPL token to a wallet which will be used to connect to the front end
  3. Set up candy machine V2 as described by the documentation, set the "whitelistMintSettings" as follows: "whitelistMintSettings": { "mode": { "burnEveryTime": true }, "mint": "", "presale": true, "discountPrice": 0.5 },
  4. Set the "goLiveDate" to a date in the future
  5. upload assets and create the candy machine
  6. Start the fair launch front end mint page
  7. Connect wallet where the SPL token was sent to
  8. Once connected, there will be a blank page, no button to mint will appear Expected behavior Expected that at step 8 with the SPL token within the connected wallet, the whitelist system should allow for the wallet to mint prior to the goLiveDate as part of the "presale" functionality.

image As above, no mint button

jack21m commented 2 years ago

I have same issue

calebporzio commented 2 years ago

Same here

darek292 commented 2 years ago

I got this working but it requires heavy tweaks to the frontend as quite few things are broken there.

calebporzio commented 2 years ago

@darek292 - mind throwing out some of what you had to do? I'm capable of heavily tweaking and any tips or shortcuts that would save me time would be much appreciated! Thanks!

alvinsga commented 2 years ago

Wrote a new frontend for Candy Machine V2 which should work for whitelisting - https://github.com/alvinsga/candy-machine-v2

kelvin2180 commented 2 years ago

+1

github-actions[bot] commented 2 years ago

This Issue has received no activity for 30 days. We will close it in 2 days, please reopen if you are still experiencing this issue.