Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve wallet path handling #49

Closed
kayagokalp opened this issue Sep 22, 2022 · 1 comment
Closed

Improve wallet path handling #49

kayagokalp opened this issue Sep 22, 2022 · 1 comment
Assignees

Comments

@kayagokalp
Copy link
Member

Currently in nearly each command handling function, we have something like

let wallet_path = match &path {
  Some(path) => PathBuf::from(path),
  None => home::home_dir().unwrap().join(DEFAULT_WALLETS_VAULT_PATH),
}

We can clean it by having a util function for this, more details can be found at #47 (comment)

@kayagokalp
Copy link
Member Author

I believe this is closed by #51 as it introduced handle_vault_path() util function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant