diff --git a/payjoin/src/send/mod.rs b/payjoin/src/send/mod.rs index d689f403..1dae2d2f 100644 --- a/payjoin/src/send/mod.rs +++ b/payjoin/src/send/mod.rs @@ -229,8 +229,6 @@ impl<'a> SenderBuilder<'a> { fee_contribution, payee, min_fee_rate: self.min_fee_rate, - #[cfg(feature = "v2")] - reply_pair: HpkeKeyPair::gen_keypair(), }) } } @@ -244,8 +242,6 @@ pub struct Sender { fee_contribution: Option<(bitcoin::Amount, usize)>, min_fee_rate: FeeRate, payee: ScriptBuf, - #[cfg(feature = "v2")] - reply_pair: HpkeKeyPair, } impl Sender { @@ -980,7 +976,6 @@ mod test { fee_contribution: None, min_fee_rate: FeeRate::ZERO, payee: ScriptBuf::from(vec![0x00]), - reply_pair: HpkeKeyPair::gen_keypair(), }; let serialized = serde_json::to_string(&req_ctx).unwrap(); let deserialized = serde_json::from_str(&serialized).unwrap();