metaplex icon indicating copy to clipboard operation
metaplex copied to clipboard

[Bug]: Invalid option EndSettings

Open 0x6c23 opened this issue 2 years ago • 1 comments

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

  • [X] I have checked the docs and it didn't solve my issue

0x6c23 avatar Jul 10 '22 10:07 0x6c23

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.

LorenzoElenkov avatar Jul 14 '22 12:07 LorenzoElenkov