Skip to content

Commit a0aefad

Browse files
authored
Merge pull request #17 from guggio/master
Changed traceId in TxInternal from long to String
2 parents bffcbb9 + 7fc5946 commit a0aefad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/main/java/io/api/etherscan/model/TxInternal.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
public class TxInternal extends BaseTx {
1212

1313
private String type;
14-
private long traceId;
14+
private String traceId;
1515
private int isError;
1616
private String errCode;
1717

@@ -20,7 +20,7 @@ public String getType() {
2020
return type;
2121
}
2222

23-
public long getTraceId() {
23+
public String getTraceId() {
2424
return traceId;
2525
}
2626

@@ -44,15 +44,15 @@ public boolean equals(Object o) {
4444

4545
TxInternal that = (TxInternal) o;
4646

47-
if (traceId != that.traceId)
47+
if (!Objects.equals(traceId, that.traceId))
4848
return false;
4949
return Objects.equals(errCode, that.errCode);
5050
}
5151

5252
@Override
5353
public int hashCode() {
5454
int result = super.hashCode();
55-
result = 31 * result + (int) (traceId ^ (traceId >>> 32));
55+
result = 31 * result + (traceId != null ? traceId.hashCode() : 0);
5656
result = 31 * result + (errCode != null ? errCode.hashCode() : 0);
5757
return result;
5858
}

0 commit comments

Comments
 (0)