]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix merge conflicts between #898 and #895.
authorMatt Corallo <git@bluematt.me>
Fri, 30 Apr 2021 17:32:36 +0000 (17:32 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 30 Apr 2021 17:32:36 +0000 (17:32 +0000)
lightning-invoice/src/utils.rs

index b90aad82d8263349c280f83a31b3bd86f3b60201..20247ed321a72d87180ccc6347c1cd7e6f9f55a2 100644 (file)
@@ -108,7 +108,7 @@ mod test {
                let _chan = create_announced_chan_between_nodes(&nodes, 0, 1, InitFeatures::known(), InitFeatures::known());
                let invoice = ::utils::create_invoice_from_channelmanager(&nodes[1].node, nodes[1].keys_manager, Currency::BitcoinTestnet, Some(10_000), "test".to_string()).unwrap();
                assert_eq!(invoice.amount_pico_btc(), Some(100_000));
-               assert_eq!(invoice.min_final_cltv_expiry(), Some(9));
+               assert_eq!(invoice.min_final_cltv_expiry(), 9);
                assert_eq!(invoice.description(), InvoiceDescription::Direct(&Description("test".to_string())));
 
                let mut route_hints = invoice.routes().clone();
@@ -129,7 +129,7 @@ mod test {
                        Some(&first_hops.iter().collect::<Vec<_>>()),
                        &last_hops.iter().collect::<Vec<_>>(),
                        amt_msat,
-                       invoice.min_final_cltv_expiry().unwrap() as u32,
+                       invoice.min_final_cltv_expiry() as u32,
                        &logger,
                ).unwrap();