mirror of
https://github.com/conduition/dlctix.git
synced 2026-02-23 17:04:29 +01:00
fix use of option for expiry in tests
This commit is contained in:
@@ -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)])),
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user