From 6d975a32a8a34f0a7e230ad623925eb491ff7762 Mon Sep 17 00:00:00 2001 From: Smaug Date: Tue, 26 Apr 2022 17:04:52 +0200 Subject: [PATCH] fix(primitives): Fix native scripts before/after type serialization (#93) --- pallas-primitives/src/alonzo/json.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pallas-primitives/src/alonzo/json.rs b/pallas-primitives/src/alonzo/json.rs index 4b8dcab..b9ceea2 100644 --- a/pallas-primitives/src/alonzo/json.rs +++ b/pallas-primitives/src/alonzo/json.rs @@ -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 }), } } }