Skip to content

Commit bed627d

Browse files
committed
[1.2.1-SNAPSHOT]
TxInternal#getTraceIdAsString added
1 parent a0aefad commit bed627d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ public String getType() {
2020
return type;
2121
}
2222

23-
public String getTraceId() {
23+
public long getTraceId() {
24+
return Long.parseLong(traceId);
25+
}
26+
27+
public String getTraceIdAsString() {
2428
return traceId;
2529
}
2630

Diff for: src/test/java/io/api/etherscan/account/AccountTxInternalByHashTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public void correct() {
6464
assertFalse(txs.get(0).haveError());
6565
assertFalse(txs.get(0).haveError());
6666
assertNotEquals(-1, txs.get(0).getTraceId());
67+
assertNotEquals("-1", txs.get(0).getTraceIdAsString());
6768
assertTrue(BasicUtils.isEmpty(txs.get(0).getErrCode()));
6869
assertNotNull(txs.get(0).toString());
6970

0 commit comments

Comments
 (0)