fix(primitives): Fix native scripts before/after type serialization (#93)

This commit is contained in:
Smaug 2022-04-26 17:04:52 +02:00 committed by GitHub
parent dc08cf5715
commit a21d892fcc

View file

@ -62,8 +62,8 @@ impl ToCanonicalJson for super::NativeScript {
let scripts: Vec<_> = k.iter().map(|i| i.to_json()).collect();
json!({ "type": "atLeast", "required": n, "scripts" : scripts })
}
super::NativeScript::InvalidBefore(slot) => json!({ "type": "before", "slot": slot }),
super::NativeScript::InvalidHereafter(slot) => json!({"type": "after", "slot": slot }),
super::NativeScript::InvalidBefore(slot) => json!({ "type": "after", "slot": slot }),
super::NativeScript::InvalidHereafter(slot) => json!({"type": "before", "slot": slot }),
}
}
}