Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose counter for getnativecontracts #900

Conversation

roman-khimov
Copy link
Contributor

neo-project/neo#2905 is incomplete without it.

…ject#852

Reuse the same model and have updatecounter in the output. All the other
fields were the same already, so old RpcClient can get results without
any problems.

Signed-off-by: Roman Khimov <[email protected]>
Now it's exactly the same server-side, so can be reused. Notice that
UpdateCounter trick allows to parse responses from old servers (that are
lacking "updatecounter" for this call), this simplifies upgrade, but can be
removed in future versions.

Signed-off-by: Roman Khimov <[email protected]>
Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

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

I will compile everything and test here today or tomorrow.

Copy link
Member

@cschuchardt88 cschuchardt88 left a comment

Choose a reason for hiding this comment

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

Please update RpcClient.

@@ -1,47 +0,0 @@
// Copyright (C) 2015-2024 The Neo Project.
Copy link
Member

@cschuchardt88 cschuchardt88 May 2, 2024

Choose a reason for hiding this comment

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

Please put this back. RpcClient needs it.

Copy link
Member

@shargon shargon left a comment

Choose a reason for hiding this comment

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

Simpler and better

@vncoelho vncoelho merged commit 76e933e into neo-project:master May 3, 2024
3 of 4 checks passed
@roman-khimov roman-khimov deleted the expose-counter-for-getnativecontracts branch May 3, 2024 18:16
Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

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

I'm too slow, but it's a really nice way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants