From 07d39c89a37977b797801ae5db274bf5e03490bb Mon Sep 17 00:00:00 2001 From: Michael George Date: Thu, 20 Feb 2025 17:26:45 -0500 Subject: [PATCH] removed dep from sui move new --- crates/sui-move/src/new.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/sui-move/src/new.rs b/crates/sui-move/src/new.rs index 3d55f6804aa33..9d3c2c2a59f92 100644 --- a/crates/sui-move/src/new.rs +++ b/crates/sui-move/src/new.rs @@ -6,11 +6,6 @@ use move_cli::base::new; use move_package::source_package::layout::SourcePackageLayout; use std::{fs::create_dir_all, io::Write, path::Path}; -const SUI_PKG_NAME: &str = "Sui"; - -// Use testnet by default. Probably want to add options to make this configurable later -const SUI_PKG_PATH: &str = "{ git = \"https://github.com/MystenLabs/sui.git\", subdir = \"crates/sui-framework/packages/sui-framework\", rev = \"framework/testnet\", override = true }"; - #[derive(Parser)] #[group(id = "sui-move-new")] pub struct New { @@ -23,7 +18,7 @@ impl New { let name = &self.new.name.to_lowercase(); self.new - .execute(path, [(SUI_PKG_NAME, SUI_PKG_PATH)], [(name, "0x0")], "")?; + .execute(path, [] as [(&str, &str); 0], [(name, "0x0")], "")?; let p = path.unwrap_or_else(|| Path::new(&name)); let mut w = std::fs::File::create( p.join(SourcePackageLayout::Sources.path())