There was an error while loading. Please reload this page.
1 parent 39e485a commit 22f4cadCopy full SHA for 22f4cad
1 file changed
xrpl4j-core/src/main/java/org/xrpl/xrpl4j/codec/binary/types/UInt192Type.java
@@ -8,7 +8,7 @@
8
/**
9
* Codec for XRPL UInt192 type.
10
*/
11
-public class UInt192Type extends HashType<UInt192Type> {
+public class UInt192Type extends UIntType<UInt192Type> {
12
13
public static final int WIDTH_BYTES = 24;
14
@@ -17,7 +17,7 @@ public UInt192Type() {
17
}
18
19
public UInt192Type(UnsignedByteArray list) {
20
- super(list, WIDTH_BYTES);
+ super(list, WIDTH_BYTES * 8);
21
22
23
@Override
@@ -29,4 +29,9 @@ public UInt192Type fromParser(BinaryParser parser) {
29
public UInt192Type fromJson(JsonNode node) {
30
return new UInt192Type(UnsignedByteArray.fromHex(node.asText()));
31
32
+
33
+ @Override
34
+ public JsonNode toJson() {
35
+ return new TextNode(toHex());
36
+ }
37
0 commit comments