From 07616978c9e60b41a65742a4eab61adb63061ff0 Mon Sep 17 00:00:00 2001 From: 21e8 Date: Thu, 12 Dec 2024 10:21:53 +0100 Subject: [PATCH] fix: remove option to leave out collection files --- src/validate/process.rs | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/validate/process.rs b/src/validate/process.rs index b2709da..12b24d4 100644 --- a/src/validate/process.rs +++ b/src/validate/process.rs @@ -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::*; @@ -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")); } }