File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1287,7 +1287,9 @@ impl TryFrom<FullOfferTlvStream> for OfferContents {
1287
1287
1288
1288
let ( issuer_signing_pubkey, paths) = match ( issuer_id, paths) {
1289
1289
( None , None ) => return Err ( Bolt12SemanticError :: MissingIssuerSigningPubkey ) ,
1290
- ( _, Some ( paths) ) if paths. is_empty ( ) => return Err ( Bolt12SemanticError :: MissingPaths ) ,
1290
+ ( None , Some ( paths) ) if paths. is_empty ( ) => {
1291
+ return Err ( Bolt12SemanticError :: MissingPaths )
1292
+ } ,
1291
1293
( issuer_id, paths) => ( issuer_id, paths) ,
1292
1294
} ;
1293
1295
@@ -2001,6 +2003,7 @@ mod tests {
2001
2003
}
2002
2004
2003
2005
let mut builder = OfferBuilder :: new ( pubkey ( 42 ) ) ;
2006
+ builder. offer . issuer_signing_pubkey = None ;
2004
2007
builder. offer . paths = Some ( vec ! [ ] ) ;
2005
2008
2006
2009
let offer = builder. build ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments