Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove option to leave out collection files #499

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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