Skip to content

Commit

Permalink
fix: remove option to leave out collection files
Browse files Browse the repository at this point in the history
  • Loading branch information
21e8 committed Dec 12, 2024
1 parent 9af4103 commit 0761697
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/validate/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use std::{
};

use anyhow::Result;
use console::{style, Style};
use dialoguer::{theme::ColorfulTheme, Confirm};
use console::style;
use glob::glob;
use rayon::prelude::*;

Expand Down Expand Up @@ -47,23 +46,15 @@ pub fn process_validate(args: ValidateArgs) -> Result<()> {
"\n{}\n{}\n",
style(warning).bold().yellow(),
style(
"Check https://developers.metaplex.com/candy-machine/guides/create-an-nft-collection-on-solana-with-candy-machine#collection-details for the collection file requirements \
"Since V3 of Candy machine it is required to create a collection.json and asset file in the assets folder.\n\
Check https://developers.metaplex.com/candy-machine/guides/create-an-nft-collection-on-solana-with-candy-machine#collection-details for the collection file requirements \
if you want a collection to be set automatically."
)
.italic()
.yellow()
);

let theme = ColorfulTheme {
success_prefix: style("✔".to_string()).yellow().force_styling(true),
values_style: Style::new().yellow(),
..get_dialoguer_theme()
};

if !Confirm::with_theme(&theme).with_prompt("Do you want to continue without automatically setting the candy machine collection?").interact()? {
return Err(anyhow!("Operation aborted"));
}
println!();
return Err(anyhow!("Missing collection.json file in assets folder"));
}
}

Expand Down

0 comments on commit 0761697

Please sign in to comment.