Skip to main content

resolve_new_dir

Function resolve_new_dir 

Source
fn resolve_new_dir(
    path: String,
    account_name: &mut Option<String>,
) -> Result<PathBuf>
Expand description

Resolves the directory for cast wallet new.

A missing bare name is rewritten into account_name and stored in the default keystore directory, matching cast wallet import <name>. Path-like values and resolution failures other than NotFound still error.