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 dcaff36f93
commit 6d975a32a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 }),
}
}
}