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

add getAccountState #781

Merged
merged 3 commits into from
May 26, 2021
Merged

add getAccountState #781

merged 3 commits into from
May 26, 2021

Conversation

superboyiii
Copy link
Member

No description provided.

@superboyiii
Copy link
Member Author

Test result

neo> get accountstate Nb5PpPX7TtwFjVrzghRgGQtzuQNM6pVLGD
Invoking script with: 'DBSmUjEciaHgpVP4AibxfrGvQYMi4BHAHwwPZ2V0QWNjb3VudFN0YXRlDBT1Y+pAvCg9TQ4FxI6jBbPyoHNA70FifVtS'
VM State: HALT
Gas Consumed: 0.0202833
Result Stack: [{"type":"Struct","value":[{"type":"Integer","value":"5000000"},{"type":"Integer","value":"137"},{"type":"ByteString","value":"AwCbdUDhDyVi5f2PrJ6uwlFmpYsm5BI0j/WoaSe/rCKi"}]}]

Voted:
NXgxx4sGFB9fdonCdjpweiiPfypMpppDuj      5000000         block: 137

@superboyiii superboyiii requested a review from shargon May 25, 2021 10:07
/// <summary>
/// Process "get accountstate"
/// </summary>
[ConsoleCommand("get accountstate", Category = "Vote Commands")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

category?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

category?

Which you prefer?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure, but it's not only for voting, we can change it later

@superboyiii
Copy link
Member Author

Result now:

neo> get accountstate Nb5PpPX7TtwFjVrzghRgGQtzuQNM6pVLGD
Invoking script with: 'DBSmUjEciaHgpVP4AibxfrGvQYMi4BHAHwwPZ2V0QWNjb3VudFN0YXRlDBT1Y+pAvCg9TQ4FxI6jBbPyoHNA70FifVtS'
VM State: HALT
Gas Consumed: 0.0202833
Result Stack: [{"type":"Struct","value":[{"type":"Integer","value":"5000000"},{"type":"Integer","value":"137"},{"type":"ByteString","value":"AwCbdUDhDyVi5f2PrJ6uwlFmpYsm5BI0j/WoaSe/rCKi"}]}]

Voted: NXgxx4sGFB9fdonCdjpweiiPfypMpppDuj
Amount: 5000000
Block: 137

@superboyiii superboyiii merged commit 7fb8d97 into master May 26, 2021
@superboyiii superboyiii deleted the add-getaccountstate branch May 26, 2021 03:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants