fix use of option for expiry in tests

This commit is contained in:
conduition
2024-03-18 20:24:22 +00:00
parent 2bd8d4fed5
commit a011cf5e44
2 changed files with 2 additions and 2 deletions

View File

@@ -253,7 +253,7 @@ mod tests {
Vec::from(b"option 2"),
Vec::from(b"option 3"),
],
expiry: u32::MAX,
expiry: Some(u32::MAX),
},
outcome_payouts: BTreeMap::from([
(Outcome::Attestation(0), PayoutWeights::from([(0, 1)])),

View File

@@ -353,7 +353,7 @@ fn simple_ticketed_dlc_simulation() {
Vec::from(b"alice and bob win"),
Vec::from(b"carol and dave win"),
],
expiry: u32::try_from(block_height + 2000).unwrap(),
expiry: u32::try_from(block_height + 2000).ok(),
},
outcome_payouts,
fee_rate: FeeRate::from_sat_per_vb_unchecked(100),