Skip to content

Commit

Permalink
Add Null and default
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Apr 15, 2020
1 parent abcc62d commit 424c272
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/neo/VM/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ private static JObject ToJson(StackItem item, HashSet<StackItem> context)
case Pointer pointer:
json["value"] = pointer.Position;
break;
case Null _:
json["value"] = JObject.Null;
break;
default: throw new InvalidOperationException();
}
return json;
}
Expand Down

0 comments on commit 424c272

Please sign in to comment.