Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7fc5946

Browse files
committed
Changed traceId in TxInternal from long to String
1 parent 22c9679 commit 7fc5946

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/main/java/io/api/etherscan/model/TxInternal.java

Lines changed: 4 additions & 4 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /