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

A minor issue with using "-h" option to run the wallet in current directory #728

Open
aglkm opened this issue Dec 3, 2024 · 0 comments
Open

Comments

@aglkm
Copy link

aglkm commented Dec 3, 2024

When you are creating a wallet in the current directory using grin-wallet init -h command, you will end up with errors saying that wallet can't contact a node.
The reason is that wallet creates API secrets paths in grin-wallet.toml file pointing to the current directory, not the actual/correct paths of node's api secrets location.

It would be nice if wallet could auto-detect the correct paths, if not possible then just print a simple message, saying that you need to correct API secrets paths, e.g.:

20241203 22:44:37.332 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20241203 22:44:37.332 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
**WARNING: YOU NEED TO CORRECT API SECRET PATHS IN GRIN-WALLET.TOML FILE.**
Please enter a password for your new wallet
Password: 
Confirm Password: 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant