Skip to content

Commit da52d4a

Browse files
committed
invoice error for blind with no outpoint
1 parent 01b9fd4 commit da52d4a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cli/src/command.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,12 @@ impl Exec for RgbArgs {
670670
.next();
671671
let network = runtime.wallet().network();
672672
let beneficiary = match (address_based, outpoint) {
673-
(true, _) | (false, None) => {
673+
(false, None) => {
674+
return Err(RuntimeError::Custom(s!(
675+
"blinded invoice requested but no suitable outpoint is available"
676+
)));
677+
}
678+
(true, _) => {
674679
let addr = runtime
675680
.wallet()
676681
.addresses(RgbKeychain::Rgb)

0 commit comments

Comments
 (0)