Closed samuelvanderwaal closed 2 years ago
The output of sugar help mint
is:
...
USAGE:
sugar mint [OPTIONS] [CANDY_MACHINE]
ARGS:
<CANDY_MACHINE> Address of candy machine to mint from
...
According to clap docs, "[]
has the dual notation of meaning the argument is optional" so it seems that this is ok. The idea of having a [CANDY_MACHINE]
is that you can mint from the command line without a cache file. Although I agree that it is a bit confusing - we could wither be explicit on the description to say that is it optional:
<CANDY_MACHINE> Address of candy machine to mint from (optional)
or move it to the a flag:
--candy-machine <ID> Address of candy machine to mint from
This issue is also present in update
and withdraw
commands.
The transaction does not fail because of the recent changes for bot protection. The transaction succeeds but you get a non-nft token as a result. This is the log from the candy machine:
To Duplicate:
sugar mint
with the-k
option set to authority keypair YExpected: it should fail to allow minting and command should fail.
Actual: No NFTs are minted but the command cycles through the mint progress bar and finishes with "Command successful".
Additionally,
sugar mint help
says that the command requires thecandy machine id
as an arg but it is not actually required.