-
Notifications
You must be signed in to change notification settings - Fork 77
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
rpc: add testing to RPC client package #763
Conversation
024ae63
to
af89635
Compare
Codecov Report
@@ Coverage Diff @@
## master #763 +/- ##
=========================================
+ Coverage 64.54% 66.94% +2.4%
=========================================
Files 141 141
Lines 12980 13034 +54
=========================================
+ Hits 8378 8726 +348
+ Misses 4200 3898 -302
- Partials 402 410 +8
Continue to review full report at Codecov.
|
219b185
to
e381358
Compare
f9c0d36
to
68d2a39
Compare
87816fc
to
58c3dac
Compare
ffead2c
to
4c18262
Compare
Problem: wrong json marshalling of `nextconsensus` field of result.Header Solution: change field type from util.uint160 to address string
problem: `script` field of result.ContractState is marshalled as []byte solution: add marshaller for result.ContractState
Problem: wrong json field name of result.NEP5Balances.Balances (see for details: https://github.com/neo-project/neo-modules/blob/master-2.x/RpcNep5Tracker/RpcNep5Tracker.cs#L295) Solution: rename field from `balances` to `balance` to be consistent with C# client
4c18262
to
8e601a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some nitpicking, looks good in general.
Problem: wrong `PublicKey` field json marshalling of result.Validator Solution: add marshaller to publickey (crypto)
closes #716 NOTE: RPC client tests contain `serverResponse` json data fetched from examples published in official C# JSON-RPC API v2.10.3 reference (see https://docs.neo.org/docs/en-us/reference/rpc/latest-version/api.html)
8e601a7
to
6998c50
Compare
closes #716
Minor bug fixes for json marshalling of the following fields:
result.Header.NextConsensus
result.ContractState.Script
result.NEP5Balances.Balances
result.Validator.PublicKey