diff --git a/pom.xml b/pom.xml index c40a778..856c071 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.iota jota - 0.9.3-SNAPSHOT + 0.9.4-SNAPSHOT JOTA JOTA library is a simple Java wrapper around IOTA Node's JSON-REST HTTP interface. diff --git a/src/main/java/jota/IotaAPI.java b/src/main/java/jota/IotaAPI.java index e03653e..3ea8718 100644 --- a/src/main/java/jota/IotaAPI.java +++ b/src/main/java/jota/IotaAPI.java @@ -460,7 +460,7 @@ public class IotaAPI extends IotaAPICore { int totalBalance = 0; int i = 0; for (String balance : balances) { - long thisBalance = Integer.parseInt(balance); + long thisBalance = Long.parseLong(balance); // If input has balance, add it to confirmedInputs if (thisBalance > 0) { @@ -1006,7 +1006,7 @@ public class IotaAPI extends IotaAPICore { long totalBalance = 0; for (String balance : balances) { - long thisBalance = Integer.parseInt(balance); + long thisBalance = Long.parseLong(balance); totalBalance += thisBalance; }