metaplex-foundation / metaplex

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

[Bug]: Invalid option EndSettings #2227

Open 0x6c23 opened 2 years ago

0x6c23 commented 2 years ago

Which package is this bug report for?

candy machine cli

Issue description

  1. Create a candy machine without endsettings
  2. run anchorProgram.instruction.updateCandyMachine and set endSettings to:
      {
        endSettingsType: {
          amount: true
        },
        number: new BN(50)
      }

OR

      {
        endSettingsType: {
          date: true
        },
        number: new BN(parseDate("now"))
      }

Result: invalid option endSettings

Command

No response

Relevant log output

No response

Operating system

Windows

Priority this issue should have

Medium (should be fixed soon)

Check the Docs First

LorenzoElenkov commented 2 years ago

I believe you have to wrap every key in quotes ( " one on each side of the key). Json files require to have keys wrapped in quotes.