metaplex-foundation / sugar

Candy Machine Rust CLI.
Apache License 2.0
198 stars 112 forks source link

[Bug]: sugar 2.6 dont ask for treasury and the nft price #467

Closed cSarcasme closed 4 months ago

cSarcasme commented 9 months ago

Issue description

Just create a candy machine with sugar with the json file of the documentation

And you will see the missing step.

Relevant log output

this is the line of command of sugar 2.6 ask

haatman@DESKTOP-4ERM02T C:\Users\haatman\Documents\nft
# sugar config create
[1/2] Sugar interactive config maker

Found metadata file(s) in folder 'assets':
  -> Loading values from file '0.json'

Check out our Candy Machine config docs to learn about the options:
  -> https://docs.metaplex.com/developer-tools/sugar/guides/configuration

? Found 10 file pairs in "assets". Is this how many NFTs you will have in your candy machine? (y/n) ›
Error running command (re-run needed): Not a terminal

haatman@DESKTOP-4ERM02T C:\Users\haatman\Documents\nft
# sugar config create
[1/2] Sugar interactive config maker

Found metadata file(s) in folder 'assets':
  -> Loading values from file '0.json'

Check out our Candy Machine config docs to learn about the options:
  -> https://docs.metaplex.com/developer-tools/sugar/guides/configuration

? Found 10 file pairs in "assets". Is this how many NFTs you will have in your can✔ Found 10 file pairs in "assets". Is this how many NFTs you will have in your candy machine? · yes
✔ Found symbol "NB" in your metadata file. Is this value correct? · yes
✔ What is the seller fee basis points? · 500
? Do you want to use a sequential mint index generation? We recommend you choose n✔ Do you want to use a sequential mint index generation? We recommend you choose no. · no
✔ How many creator wallets do you have? (max limit of 4) · 1
✔ Enter creator wallet address #1 · HsgJBN2hDCb6gbZzJekfbZoKhQ3nn8d4Uq4P5b54zg3r
? Enter royalty percentage share for creator #1 (e.g., 70). Total shares must add ✔ Enter royalty percentage share for creator #1 (e.g., 70). Total shares must add to 100. · 100
? Which extra features do you want to use? (use [SPACEBAR] to select options you w✔ Which extra features do you want to use? (use [SPACEBAR] to select options you want and hit [ENTER] when done) ·
✔ What upload method do you want to use? · Bundlr
? Do you want your NFTs to remain mutable? We HIGHLY recommend you choose yes. (y/✔ Do you want your NFTs to remain mutable? We HIGHLY recommend you choose yes. · yes

[2/2] Saving config file

Saving config to file: "config.json"

Successfully generated the config file.

Command successful.

Priority this issue should have

Low (slightly annoying)

febo commented 9 months ago

Sugar v2.x only supports Candy Machine v3, which uses a guard to set the price. Check the documentation to see how to configure the guards: