Skip to content

Commit

Permalink
removed dep from sui move new
Browse files Browse the repository at this point in the history
  • Loading branch information
mdgeorge4153 committed Feb 20, 2025
1 parent ff485eb commit 07d39c8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/sui-move/src/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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())
Expand Down

0 comments on commit 07d39c8

Please sign in to comment.