Skip to content

Commit

Permalink
Fix serialization of CCDAmount.
Browse files Browse the repository at this point in the history
  • Loading branch information
Emil Lai committed Feb 5, 2024
1 parent 2d41df2 commit 779c0b4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,9 @@ public static CCDAmount fromBytes(ByteBuffer source) {
public String toString() {
return this.getValue().toString() + " micro CCD";
}

@JsonValue
public String toJsonString() {
return String.valueOf(this.value.getValue());
}
}

0 comments on commit 779c0b4

Please sign in to comment.