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

Wallet already exists warning is not correct #186

Closed
kayagokalp opened this issue Jun 11, 2024 · 4 comments
Closed

Wallet already exists warning is not correct #186

kayagokalp opened this issue Jun 11, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@kayagokalp
Copy link
Member

I tried generating a new folder and creating a new wallet at that location. I see that:

warning: There is an existing wallet at ../../wallet. Do you wish to replace it with a new wallet? (y/N)

Which is not possible as the folder is newly created. I think there is an issue about checking the existing wallet.

@kayagokalp kayagokalp added the bug Something isn't working label Jun 11, 2024
@kayagokalp kayagokalp self-assigned this Jun 11, 2024
@kayagokalp
Copy link
Member Author

We currently check if the path exists but we want to also check if it is empty.

@kayagokalp kayagokalp removed their assignment Sep 19, 2024
@zees-dev zees-dev self-assigned this Oct 28, 2024
@zees-dev
Copy link
Contributor

addressed by #220

zees-dev added a commit that referenced this issue Oct 30, 2024
# Changelog

- added [`tempfile`](https://crates.io/crates/tempfile) to create test
dirs for testing
- updated test functions and util functions accordingly (removed
redundant helper functions and replaced references)
- added `rust-toolchain.toml` with stable rust `1.80.0`
- minor refactors to CI workflows to match the `rust-toolchain.toml`
rust version
- git ignoring IDE directory (`.vscode/`)
- fixed `new_at_index` function to print checksum wallet address
(currently printing bech32 address to stdout)
- updated `ensure_no_wallet_exists` function to handle the following
cases:
  - where wallet path is a directory
  - where wallet path is an empty file
- this also addresses:
#186
- added unit tests for `ensure_no_wallet_exists`

---------

Co-authored-by: Kaya Gokalp <kayagokalp123@gmail.com>
@kayagokalp
Copy link
Member Author

I will check and close this if solved it once I am back online which would be on 3rd of November. Thanks a lot for the implementation :)

@zees-dev
Copy link
Contributor

addressed by #220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants