Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

A question of ContractParameter.FromJson(ByteString) #293

@ProDog

Description

@ProDog

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions