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

Rename vmstate to state in getapplicationlog result  #665

@ixje

Description

@ixje

Summary or problem description
Calling invokefunction, invokescript and invokecontractverify return among others these properties

        "state": "HALT",
        "gasconsumed": "999972",
        "exception": null,
        "stack": [

getapplicationlog has almost the same response, but instead uses vmstate instead of state as the key name for the engine state. Now a consumer has to add special handling just for getapplicationlog while it can all still be considered execution results.

Do you have any solution you want to propose?
I'd like to propose to streamline the naming to state. We can first add state as another key, mention vmstate is deprecated and will be removed in the release after the one the new key is introduced in to avoid breaking existing tools like the getversion change did.

Where in the software does this update applies to?

  • RPC (HTTP) specifically here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions