Skip to content

Commit

Permalink
create_wallet added description
Browse files Browse the repository at this point in the history
  • Loading branch information
zees-dev committed Oct 29, 2024
1 parent 6b82bc4 commit 0306d83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ mod tests {
fs::remove_file(wallet_path).unwrap();
}
}

/// Create a wallet file with optional wallet content.
/// Creates empty wallet file if content is None.
fn create_wallet(wallet_path: &Path, content: Option<&str>) {
if !wallet_path.exists() {
fs::File::create(wallet_path).unwrap();
Expand Down

0 comments on commit 0306d83

Please sign in to comment.