Error if BOLT 11 features are provided for blinded payment params
[rust-lightning] / lightning-invoice / src / utils.rs
index 109e03d0f8c94a56bb175009e47e4b2c23abfea4..8141f39559181e6d3b1bff1432798c5ec4ccb7c6 100644 (file)
@@ -838,7 +838,7 @@ mod test {
 
                let payment_params = PaymentParameters::from_node_id(invoice.recover_payee_pub_key(),
                                invoice.min_final_cltv_expiry_delta() as u32)
-                       .with_features(invoice.features().unwrap().clone())
+                       .with_bolt11_features(invoice.features().unwrap().clone()).unwrap()
                        .with_route_hints(invoice.route_hints()).unwrap();
                let route_params = RouteParameters {
                        payment_params,
@@ -1294,7 +1294,7 @@ mod test {
 
                let payment_params = PaymentParameters::from_node_id(invoice.recover_payee_pub_key(),
                                invoice.min_final_cltv_expiry_delta() as u32)
-                       .with_features(invoice.features().unwrap().clone())
+                       .with_bolt11_features(invoice.features().unwrap().clone()).unwrap()
                        .with_route_hints(invoice.route_hints()).unwrap();
                let params = RouteParameters {
                        payment_params,