-
Notifications
You must be signed in to change notification settings - Fork 75
Generating new adress with empty descriptor gives 0 exit code #170
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
Comments
The v1 update returns an error:
Please confirm that the issue is resolved and close it. |
I've got the same error message for 0.27.1: -> % cargo install bdk-cli --features electrum
Updating crates.io index
Installing bdk-cli v0.27.1
...
Finished `release` profile [optimized] target(s) in 18.99s
Installing /Users/vaan/.cargo/bin/bdk-cli
Installed package `bdk-cli v0.27.1` (executable `bdk-cli`)
-> % bdk-cli --network signet wallet --descriptor "" get_new_address
[2025-04-17T10:23:37Z ERROR bdk_cli] Descriptor error: Miniscript error: unexpected «(0 args) while parsing Miniscript»
vaan@mbpro [14:23:37] [~]
-> % echo $?
0 The the issue is still here - return code is zero despite error message. My PR #173 with a fix points to master, but if I execute the same command in the current master branch, there will be a different error. It seems that master is quite different from the current actual release 0.27.1. Should I direct my fix to the |
Hi @va-an , thanks for reproducing the error.
Yes, it produces a different error message
Yes, the current master state has not been released yet.
Your fix should point to master as it is now. Please rebase with the lastest master so that your PR will be reviewed. It currently has conflicts. Thank you |
@tvpeter, thanks for clarifying this for me! |
Describe the bug
Calling
get_new_address
with an empty descriptor prints an error, but exits with 0.To Reproduce
Expected behavior
I'd expect a non-0 exit code.
Build environment
The text was updated successfully, but these errors were encountered: