Skip to content

Commit 54d5efb

Browse files
committed
fix miniscript typesystem bug
1 parent 7bbc3e4 commit 54d5efb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/miniscript/types/correctness.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ impl Property for Correctness {
325325
(Input::Zero, Input::OneNonZero) | (Input::OneNonZero, Input::Zero) => {
326326
Input::OneNonZero
327327
}
328-
(Input::AnyNonZero, _) | (Input::Zero, Input::AnyNonZero) => Input::AnyNonZero,
328+
(Input::OneNonZero, _)
329+
| (Input::AnyNonZero, _)
330+
| (Input::Zero, Input::AnyNonZero) => Input::AnyNonZero,
329331
_ => Input::Any,
330332
},
331333
dissatisfiable: left.dissatisfiable && right.dissatisfiable,

0 commit comments

Comments
 (0)