diff --git a/src/RpcClient/Models/RpcNativeContract.cs b/src/RpcClient/Models/RpcNativeContract.cs index f103a418e..5c85efa7c 100644 --- a/src/RpcClient/Models/RpcNativeContract.cs +++ b/src/RpcClient/Models/RpcNativeContract.cs @@ -21,7 +21,6 @@ public class RpcNativeContract public UInt160 Hash { get; set; } public NefFile Nef { get; set; } public ContractManifest Manifest { get; set; } - public uint[] UpdateHistory { get; set; } public static RpcNativeContract FromJson(JObject json) { @@ -30,8 +29,7 @@ public static RpcNativeContract FromJson(JObject json) Id = (int)json["id"].AsNumber(), Hash = UInt160.Parse(json["hash"].AsString()), Nef = RpcNefFile.FromJson((JObject)json["nef"]), - Manifest = ContractManifest.FromJson((JObject)json["manifest"]), - UpdateHistory = ((JArray)json["updatehistory"]).Select(u => (uint)u.GetInt32()).ToArray() + Manifest = ContractManifest.FromJson((JObject)json["manifest"]) }; } @@ -42,8 +40,7 @@ public JObject ToJson() ["id"] = Id, ["hash"] = Hash.ToString(), ["nef"] = Nef.ToJson(), - ["manifest"] = Manifest.ToJson(), - ["updatehistory"] = new JArray(UpdateHistory.Select(u => new JNumber(u)).ToArray()) + ["manifest"] = Manifest.ToJson() }; } } diff --git a/tests/Neo.Network.RPC.Tests/RpcTestCases.json b/tests/Neo.Network.RPC.Tests/RpcTestCases.json index 903d48307..c1f89bf37 100644 --- a/tests/Neo.Network.RPC.Tests/RpcTestCases.json +++ b/tests/Neo.Network.RPC.Tests/RpcTestCases.json @@ -1202,8 +1202,7 @@ ], "trusts": [], "extra": null - }, - "updatehistory": [ 0 ] + } }, { "id": -2, @@ -1300,8 +1299,7 @@ ], "trusts": [], "extra": null - }, - "updatehistory": [ 0 ] + } }, { "id": -3, @@ -1505,8 +1503,7 @@ ], "trusts": [], "extra": null - }, - "updatehistory": [ 0 ] + } }, { "id": -4, @@ -1614,8 +1611,7 @@ ], "trusts": [], "extra": null - }, - "updatehistory": [ 0 ] + } }, { "id": -5, @@ -1796,8 +1792,7 @@ ], "trusts": [], "extra": null - }, - "updatehistory": [ 0 ] + } }, { "id": -6, @@ -1860,8 +1855,7 @@ ], "trusts": [], "extra": null - }, - "updatehistory": [ 0 ] + } }, { "id": -7, @@ -1969,8 +1963,7 @@ ], "trusts": [], "extra": null - }, - "updatehistory": [ 0 ] + } }, { "id": -8, @@ -2263,8 +2256,7 @@ ], "trusts": [], "extra": null - }, - "updatehistory": [ 0 ] + } } ] }