mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2026-10-04 05:26:59 +00:00
bugfix thx @th0br0
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.iota</groupId>
|
||||
<artifactId>jota</artifactId>
|
||||
<version>0.9.3-SNAPSHOT</version>
|
||||
<version>0.9.4-SNAPSHOT</version>
|
||||
<name>JOTA</name>
|
||||
<description>JOTA library is a simple Java wrapper around IOTA Node's JSON-REST HTTP interface.</description>
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user