@@ -1566,10 +1566,8 @@ mod tests {
1566
1566
#[ cfg( feature = "std" ) ]
1567
1567
assert ! ( !unsigned_invoice. is_expired( ) ) ;
1568
1568
assert_eq ! ( unsigned_invoice. payment_hash( ) , payment_hash) ;
1569
- assert_eq ! ( unsigned_invoice. amount_msats( ) , 1000 ) ;
1570
1569
assert_eq ! ( unsigned_invoice. fallbacks( ) , vec![ ] ) ;
1571
1570
assert_eq ! ( unsigned_invoice. invoice_features( ) , & Bolt12InvoiceFeatures :: empty( ) ) ;
1572
- assert_eq ! ( unsigned_invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
1573
1571
1574
1572
match UnsignedBolt12Invoice :: try_from ( buffer) {
1575
1573
Err ( e) => panic ! ( "error parsing unsigned invoice: {:?}" , e) ,
@@ -1610,10 +1608,8 @@ mod tests {
1610
1608
#[ cfg( feature = "std" ) ]
1611
1609
assert ! ( !invoice. is_expired( ) ) ;
1612
1610
assert_eq ! ( invoice. payment_hash( ) , payment_hash) ;
1613
- assert_eq ! ( invoice. amount_msats( ) , 1000 ) ;
1614
1611
assert_eq ! ( invoice. fallbacks( ) , vec![ ] ) ;
1615
1612
assert_eq ! ( invoice. invoice_features( ) , & Bolt12InvoiceFeatures :: empty( ) ) ;
1616
- assert_eq ! ( invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
1617
1613
1618
1614
let message = TaggedHash :: from_valid_tlv_stream_bytes ( SIGNATURE_TAG , & invoice. bytes ) ;
1619
1615
assert ! ( merkle:: verify_signature( & invoice. signature, & message, recipient_pubkey( ) ) . is_ok( ) ) ;
@@ -1708,10 +1704,8 @@ mod tests {
1708
1704
#[ cfg( feature = "std" ) ]
1709
1705
assert ! ( !invoice. is_expired( ) ) ;
1710
1706
assert_eq ! ( invoice. payment_hash( ) , payment_hash) ;
1711
- assert_eq ! ( invoice. amount_msats( ) , 1000 ) ;
1712
1707
assert_eq ! ( invoice. fallbacks( ) , vec![ ] ) ;
1713
1708
assert_eq ! ( invoice. invoice_features( ) , & Bolt12InvoiceFeatures :: empty( ) ) ;
1714
- assert_eq ! ( invoice. signing_pubkey( ) , recipient_pubkey( ) ) ;
1715
1709
1716
1710
let message = TaggedHash :: from_valid_tlv_stream_bytes ( SIGNATURE_TAG , & invoice. bytes ) ;
1717
1711
assert ! ( merkle:: verify_signature( & invoice. signature, & message, recipient_pubkey( ) ) . is_ok( ) ) ;
0 commit comments