Now we get ByteString type of result's stack when invoke contract, it's StackItemType.
In RpcClient, we convert stack use:
|
invokeScriptResult.Stack = ((JArray)json["stack"]).Select(p => ContractParameter.FromJson(p)).ToArray(); |
but in ContractParameter.FromJson(JObject json) is no ByteString type, it's should be ContractParameterType:
https://github.com/neo-project/neo/blob/b47157669cabc9c4f0f4ff56cf4fe2a82905bcfe/src/neo/SmartContract/ContractParameter.cs#L58
Can we support StackItemType convert to ContractParameterType or StackItem.FromJson(JObject json) etc ?