Skip to content

Commit 6401c22

Browse files
committed
miniscript: fix string serialization of and_n
We are incorrectly serializing and_n as "and_b". In master this is fixed by #722 which rewrites the Display impl completely.
1 parent 8f54b5e commit 6401c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/miniscript/astelem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl<Pk: MiniscriptKey, Ctx: ScriptContext> Terminal<Pk, Ctx> {
6262
Terminal::AndB(ref l, ref r) => fmt_2(f, "and_b(", l, r, is_debug),
6363
Terminal::AndOr(ref a, ref b, ref c) => {
6464
if c.node == Terminal::False {
65-
fmt_2(f, "and_b(", a, b, is_debug)
65+
fmt_2(f, "and_n(", a, b, is_debug)
6666
} else {
6767
f.write_str("andor(")?;
6868
conditional_fmt(f, a, is_debug)?;

0 commit comments

Comments
 (0)