multiversx_sc_meta/cmd/template/
contract_creator_target.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use std::path::PathBuf;

#[derive(Clone)]
pub struct ContractCreatorTarget {
    pub target_path: PathBuf,
    pub new_name: String,
}

impl ContractCreatorTarget {
    pub fn contract_dir(&self) -> PathBuf {
        self.target_path.join(&self.new_name)
    }
}