Skip to content

Commit

Permalink
Merge pull request #123 from nicbus/invoice_error
Browse files Browse the repository at this point in the history
invoice error for blind with no outpoint
  • Loading branch information
dr-orlovsky authored Feb 8, 2024
2 parents 01b9fd4 + da52d4a commit 9076e4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,12 @@ impl Exec for RgbArgs {
.next();
let network = runtime.wallet().network();
let beneficiary = match (address_based, outpoint) {
(true, _) | (false, None) => {
(false, None) => {
return Err(RuntimeError::Custom(s!(
"blinded invoice requested but no suitable outpoint is available"
)));
}
(true, _) => {
let addr = runtime
.wallet()
.addresses(RgbKeychain::Rgb)
Expand Down

0 comments on commit 9076e4a

Please sign in to comment.