Skip to content

Commit 9b66440

Browse files
committed
Merge branch 'mpt-amounts' of https://github.com/XRPLF/xrpl4j into mpts
2 parents b35789b + efd4ee0 commit 9b66440

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

xrpl4j-core/src/test/java/org/xrpl/xrpl4j/codec/binary/types/BaseSerializerTypeTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ void fixtureTests(ValueTest fixture) throws IOException {
6060
AmountType amountType = (AmountType) serialized;
6161
// Special-case for zero-value IOU amounts.
6262
if (
63-
!amountType.toJson().has("mpt_issuance_id") &&// <-- Not MPT
63+
!amountType.toJson().has("mpt_issuance_id") && // <-- Not MPT
6464
amountType.toJson().has("value") && // <-- Is IOU
65-
(amountType.toJson().get("value").asText().equals("0") ||
66-
amountType.toJson().get("value").asText().equals("0.0"))
65+
(
66+
amountType.toJson().get("value").asText().equals("0") ||
67+
amountType.toJson().get("value").asText().equals("0.0")
68+
)
6769
) {
6870
// An apparent bug in AmountType always sets the negative/positive boolean to `negative` when the amount
6971
// values are `0` or `0.0`, so this special case must exist in order for tests to pass. Once

0 commit comments

Comments
 (0)