metaplex-foundation / metaplex

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

Unable to mint on Candy Machine UI Tutorial #1459

Open rmdorsey opened 2 years ago

rmdorsey commented 2 years ago

Describe the bug I've successfully compiled and started the candy machine ui application after following the steps described on the tutorial page: https://docs.metaplex.com/candy-machine-v2/mint-frontend

The UI instructs me to connect my wallet. After connecting my wallet I see a button that says "MINT", but I'm unable to click it. The console shows me the following errors:

Screen Shot 2022-01-07 at 11 19 23 PM

I'm using the Chrome browser.

stegaBOB commented 2 years ago

Did you fill out your .env file correctly?

rmdorsey commented 2 years ago

yes.

DedaDev commented 2 years ago

That error appears if your goLiveDate is null, unfortunately, there is no validation for the existence of the date :/ So either update your goLiveDate or change isActive property in candy-machine.ts to:

isActive: state.endSettings
          ? state.endSettings.endSettingType.date
            ? state.endSettings.number.toNumber() > new Date().getTime() / 1000
            : itemsRedeemed < state.endSettings.number.toNumber()
          : true,
stegaBOB commented 2 years ago

Thanks for bringing up this issue. We will look into it closer and hopefully get a fix out by end of weekend. Thanks again!

PixelInvaderz commented 2 years ago

Hi having the same issue but my goLiveDate is not null.

rmdorsey commented 2 years ago

updating the goLiveDate from null fixed my issue! Thank you! Here is what my fixed config looks like for anyone interested...

Screen Shot 2022-01-08 at 10 21 10 AM
mmmaxonchik commented 2 years ago

I have this problem too, after connecting wallet, button is disabled, I have true goLiveDate, but it is not working, pls help me.

JasonJvV commented 2 years ago

I have this problem too, after connecting wallet, button is disabled, I have true goLiveDate, but it is not working, pls help me.

Did you manage to solve the issue? I have the same problem. My go live date is "01 Feb 2022 00:00:00 GMT" And so should be working...

mmmaxonchik commented 2 years ago

I have this problem too, after connecting wallet, button is disabled, I have true goLiveDate, but it is not working, pls help me.

Did you manage to solve the issue? I have the same problem. My go live date is "01 Feb 2022 00:00:00 GMT" And so should be working...

No, I wait answer from stegaBOB

nancyyyy333 commented 2 years ago

Having the same issue here, try various dates for go-live date but still not working.

YnsDev1 commented 2 years ago

same issue here , button for mint is not active

my wallet all ready connected

adamskrv commented 2 years ago

Hi please i need help getting the "REACT_APP_CANDY_MACHINE_ID".. i can only see the config ID on devnet.example.

Jjfern96 commented 2 years ago

Same issue. Mint button is not active.

Grahamrad9333 commented 2 years ago

Same issue. Mint button is not active.

me too, please somepne help

aidantibbitt commented 2 years ago

@stegaBOB any fix for this?

denboydoc commented 2 years ago

Hi. Have same issue. Date is set any solutions?

janphilippfranken commented 2 years ago

same issue, could not find a solution.

janphilippfranken commented 2 years ago

i get this error: Error: Invalid account discriminator at AccountClient.fetchNullable (account.ts:140:1) at async AccountClient.fetch (account.ts:152:1) at async getCandyMachineState (candy-machine.ts:176:1) at async Home.tsx:104:1

stegaBOB commented 2 years ago

It might be an anchor version issue. We're looking into it!

janphilippfranken commented 2 years ago

thank you!

On Mon, 6 Jun 2022 at 05:59, Sammy @.***> wrote:

Reopened #1459 https://github.com/metaplex-foundation/metaplex/issues/1459.

— Reply to this email directly, view it on GitHub https://github.com/metaplex-foundation/metaplex/issues/1459#event-6750219073, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6ZNJOM5JNRBASU3ICM55LVNWARXANCNFSM5LQGVAZA . You are receiving this because you commented.Message ID: @.*** com>

dangvh5 commented 2 years ago

It might be an anchor version issue. We're looking into it!

Hi, about this "Invalid account discriminator" issues, do you have any solutions for this yet?

the-mercenaries-ltd commented 2 years ago

I'd like to help.

Can anybody give steps to reproduce?

To begin with, I think the following is needed:

  1. your current anchor version (find using anchor -V in terminal)
  2. your local.env file (assuming your candy machine is a test one, don't share production candy machine ID before launch)
  3. what commit of the metaplex repo you are using (bottom entry if you use git log -1. from inside ~/metaplex-foundation/metaplex [a4439e0259e2b9197cd9ef70a454c6b878df522c in the screenshot below])
find-commit
Egwq commented 2 years ago

My mint button dissappears immediately you connect your wallet

bypina commented 2 years ago

I'm having this issue as well

node version 16.16.0