Skip to content

Commit 0761697

Browse files
committed
fix: remove option to leave out collection files
1 parent 9af4103 commit 0761697

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

src/validate/process.rs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use std::{
55
};
66

77
use anyhow::Result;
8-
use console::{style, Style};
9-
use dialoguer::{theme::ColorfulTheme, Confirm};
8+
use console::style;
109
use glob::glob;
1110
use rayon::prelude::*;
1211

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

57-
let theme = ColorfulTheme {
58-
success_prefix: style("✔".to_string()).yellow().force_styling(true),
59-
values_style: Style::new().yellow(),
60-
..get_dialoguer_theme()
61-
};
62-
63-
if !Confirm::with_theme(&theme).with_prompt("Do you want to continue without automatically setting the candy machine collection?").interact()? {
64-
return Err(anyhow!("Operation aborted"));
65-
}
66-
println!();
57+
return Err(anyhow!("Missing collection.json file in assets folder"));
6758
}
6859
}
6960

0 commit comments

Comments
 (0)