DRY up repeated HTLC `Balance`s in tests
[rust-lightning] / lightning / src / ln / onion_utils.rs
index 2c20fb17734b74a3394ca724ad732a8ec5f3525b..b9f36bbd8dadf94592c9082a303ef378879a4819 100644 (file)
@@ -170,6 +170,7 @@ pub(super) fn build_onion_payloads(path: &Vec<RouteHop>, total_msat: u64, mut re
                                                        total_msat,
                                                })
                                        } else { None },
+                                       payment_metadata: recipient_onion.payment_metadata.take(),
                                        keysend_preimage: *keysend_preimage,
                                }
                        } else {