From 424c272189ed8496d23ea7d172f73beb466e4110 Mon Sep 17 00:00:00 2001 From: Shargon Date: Wed, 15 Apr 2020 09:39:48 +0200 Subject: [PATCH] Add Null and default --- src/neo/VM/Helper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/neo/VM/Helper.cs b/src/neo/VM/Helper.cs index eaed72fb31..63322d5daf 100644 --- a/src/neo/VM/Helper.cs +++ b/src/neo/VM/Helper.cs @@ -262,6 +262,10 @@ private static JObject ToJson(StackItem item, HashSet context) case Pointer pointer: json["value"] = pointer.Position; break; + case Null _: + json["value"] = JObject.Null; + break; + default: throw new InvalidOperationException(); } return json; }