metaplex-foundation / sugar

Candy Machine Rust CLI.
Apache License 2.0
203 stars 116 forks source link

Fix/reveal #458

Closed samuelvanderwaal closed 1 year ago

samuelvanderwaal commented 1 year ago

Fixes #451 and reveal gPA call.

The last commit decouples the pattern checking logic from the name so the names in the JSON asset files do not have to match the Unrevealed Name Pattern that the NFTs are initially created with. The revealed names also do not have to have the same pattern themselves.

Pre-reveal: Selection_110

Selection_111

Post-reveal: Selection_112

Selection_113

If the pattern match fails due to the reveal already happening it prints a warning message but doesn't fail the rest of the reveal:

Selection_114

Finally, it handles NFT naming zero and one indexed by parsing the $ID*$ pattern in the config file.