Skip to content

Changed traceId in TxInternal from long to String #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/io/api/etherscan/model/TxInternal.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public class TxInternal extends BaseTx {

private String type;
private long traceId;
private String traceId;
private int isError;
private String errCode;

Expand All @@ -20,7 +20,7 @@ public String getType() {
return type;
}

public long getTraceId() {
public String getTraceId() {
return traceId;
}

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

TxInternal that = (TxInternal) o;

if (traceId != that.traceId)
if (!Objects.equals(traceId, that.traceId))
return false;
return Objects.equals(errCode, that.errCode);
}

@Override
public int hashCode() {
int result = super.hashCode();
result = 31 * result + (int) (traceId ^ (traceId >>> 32));
result = 31 * result + (traceId != null ? traceId.hashCode() : 0);
result = 31 * result + (errCode != null ? errCode.hashCode() : 0);
return result;
}
Expand Down