fix(primitives): Fix native scripts before/after type serialization (#93)
This commit is contained in:
parent
dcaff36f93
commit
6d975a32a8
1 changed files with 2 additions and 2 deletions
|
|
@ -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 }),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue