Skip to content

Commit 22f4cad

Browse files
committed
Revert "make UInt192Type a HashType"
This reverts commit 39e485a.
1 parent 39e485a commit 22f4cad

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/codec/binary/types/UInt192Type.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Codec for XRPL UInt192 type.
1010
*/
11-
public class UInt192Type extends HashType<UInt192Type> {
11+
public class UInt192Type extends UIntType<UInt192Type> {
1212

1313
public static final int WIDTH_BYTES = 24;
1414

@@ -17,7 +17,7 @@ public UInt192Type() {
1717
}
1818

1919
public UInt192Type(UnsignedByteArray list) {
20-
super(list, WIDTH_BYTES);
20+
super(list, WIDTH_BYTES * 8);
2121
}
2222

2323
@Override
@@ -29,4 +29,9 @@ public UInt192Type fromParser(BinaryParser parser) {
2929
public UInt192Type fromJson(JsonNode node) {
3030
return new UInt192Type(UnsignedByteArray.fromHex(node.asText()));
3131
}
32+
33+
@Override
34+
public JsonNode toJson() {
35+
return new TextNode(toHex());
36+
}
3237
}

0 commit comments

Comments
 (0)