-
Notifications
You must be signed in to change notification settings - Fork 49
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
Support for NetworkID #461
Conversation
Codecov Report
@@ Coverage Diff @@
## main #461 +/- ##
============================================
+ Coverage 90.44% 90.46% +0.02%
- Complexity 1464 1468 +4
============================================
Files 285 287 +2
Lines 4164 4174 +10
Branches 339 339
============================================
+ Hits 3766 3776 +10
Misses 277 277
Partials 121 121
|
* No-args constructor. | ||
*/ | ||
public NetworkIdSerializer() { | ||
super(NetworkId.class, false); |
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.
super(NetworkId.class, false); | |
super(NetworkId.class); |
@@ -134,9 +136,10 @@ public void serializeAccountDelete() throws JsonProcessingException { | |||
.sequence(UnsignedInteger.valueOf(2470665)) | |||
.destination(Address.of("rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe")) | |||
.destinationTag(UnsignedInteger.valueOf(13)) | |||
.networkId(NetworkId.of(UnsignedInteger.MAX_VALUE)) |
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.
Let's add one test that is explicitly indicates (via its name) that the test is testing the absence of a network id on a particular transaction's binary encoding.
Adds support for the
NetworkID
transaction field. This field isOptional
inTransaction
, as it is only required on networks with ID > 1024.Fixes #427