Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

Commit bc208c8

Browse files
authored
fix (#879)
1 parent 92bed8e commit bc208c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

neo-cli/CLI/MainService.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ public MainService() : base()
7878
RegisterCommandHandler<string[], UInt160[]>(arr => arr.Select(str => StringToAddress(str, NeoSystem.Settings.AddressVersion)).ToArray());
7979
RegisterCommandHandler<string, ECPoint>(str => ECPoint.Parse(str.Trim(), ECCurve.Secp256r1));
8080
RegisterCommandHandler<string[], ECPoint[]>(str => str.Select(u => ECPoint.Parse(u.Trim(), ECCurve.Secp256r1)).ToArray());
81-
RegisterCommandHandler<string, JObject>(str => JObject.Parse(str));
81+
RegisterCommandHandler<string, JToken>(str => JToken.Parse(str));
82+
RegisterCommandHandler<string, JObject>(str => (JObject)JToken.Parse(str));
8283
RegisterCommandHandler<string, decimal>(str => decimal.Parse(str, CultureInfo.InvariantCulture));
8384
RegisterCommandHandler<JToken, JArray>(obj => (JArray)obj);
8485

0 commit comments

Comments
 (0)