diff --git a/lightning/src/offers/merkle.rs b/lightning/src/offers/merkle.rs index 646f1ec4239..3bf419a73e3 100644 --- a/lightning/src/offers/merkle.rs +++ b/lightning/src/offers/merkle.rs @@ -230,8 +230,7 @@ mod tests { let invoice_request = OfferBuilder::new("A Mathematical Treatise".into(), recipient_pubkey) .amount(Amount::Currency { iso4217_code: *b"USD", amount: 100 }) .build_unchecked() - .request_invoice(payer_keys.public_key()) - .metadata(vec![0; 8]) + .request_invoice(vec![0; 8], payer_keys.public_key()) .build_unchecked() .sign(|digest| secp_ctx.sign_schnorr_no_aux_rand(digest, &payer_keys)) .unwrap();