Skip to content

Commit

Permalink
remove nested cctl module
Browse files Browse the repository at this point in the history
  • Loading branch information
marijanp committed Aug 26, 2024
1 parent e81fb6e commit 523ddd3
Show file tree
Hide file tree
Showing 6 changed files with 404 additions and 408 deletions.
5 changes: 1 addition & 4 deletions bin/cctld.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
use casper_types::{runtime_args, RuntimeArgs};
use cctl::cctl;
use clap::Parser;
use sd_notify::NotifyState;
use std::path::PathBuf;
use tokio::signal;

use crate::cctl::DeployableContract;

#[derive(Parser)]
pub struct Cli {
#[arg(short, long)]
Expand All @@ -24,7 +21,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let cli = Cli::parse();
let deploy_contract = cli.deploy_contract.map(|deploy_contracts_arg| {
match deploy_contracts_arg.split_once(':') {
Some((hash_name, path)) => DeployableContract {
Some((hash_name, path)) => cctl::DeployableContract {
hash_name: hash_name.to_string(),
// FIXME at some point we want to make this parametrizable
runtime_args: runtime_args! { "initial_trie_root" => Option::<[u8; 32]>::None },
Expand Down
Loading

0 comments on commit 523ddd3

Please sign in to comment.