File tree Expand file tree Collapse file tree 4 files changed +13
-11
lines changed
main/java/io/api/etherscan/model
test/java/io/api/etherscan/account Expand file tree Collapse file tree 4 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ Library supports all available EtherScan *API* calls for all available *Ethereum
1414<dependency >
1515 <groupId >com.github.goodforgod</groupId >
1616 <artifactId >java-etherscan-api</artifactId >
17- <version >1.0.1 </version >
17+ <version >1.0.2 </version >
1818</dependency >
1919```
2020
2121** Gradle**
2222``` groovy
2323dependencies {
24- compile 'com.github.goodforgod:java-etherscan-api:1.0.1 '
24+ compile 'com.github.goodforgod:java-etherscan-api:1.0.2 '
2525}
2626```
2727
@@ -165,6 +165,8 @@ Token API methods migrated to [Account](#account-api) & [Stats](#stats-api) resp
165165
166166## Version History
167167
168+ ** 1.0.2** - Minor http client improvements.
169+
168170** 1.0.1** - Gorli & TOBALABA networks support.
169171
170172** 1.0.0** - Initial project with all API functionality, for all available networks, with tests coverage for all cases.
Original file line number Diff line number Diff line change @@ -73,13 +73,15 @@ public BigInteger getGasUsed() {
7373 @ Override
7474 public boolean equals (Object o ) {
7575 if (this == o ) return true ;
76- if (o == null || getClass () != o . getClass ( )) return false ;
76+ if (!( o instanceof BaseTx )) return false ;
7777
7878 BaseTx baseTx = (BaseTx ) o ;
7979
8080 if (blockNumber != baseTx .blockNumber ) return false ;
8181 if (timeStamp != null ? !timeStamp .equals (baseTx .timeStamp ) : baseTx .timeStamp != null ) return false ;
8282 if (hash != null ? !hash .equals (baseTx .hash ) : baseTx .hash != null ) return false ;
83+ if (from != null ? !from .equals (baseTx .from ) : baseTx .from != null ) return false ;
84+ if (to != null ? !to .equals (baseTx .to ) : baseTx .to != null ) return false ;
8385 return value != null ? value .equals (baseTx .value ) : baseTx .value == null ;
8486 }
8587
@@ -88,6 +90,8 @@ public int hashCode() {
8890 int result = (int ) (blockNumber ^ (blockNumber >>> 32 ));
8991 result = 31 * result + (timeStamp != null ? timeStamp .hashCode () : 0 );
9092 result = 31 * result + (hash != null ? hash .hashCode () : 0 );
93+ result = 31 * result + (from != null ? from .hashCode () : 0 );
94+ result = 31 * result + (to != null ? to .hashCode () : 0 );
9195 result = 31 * result + (value != null ? value .hashCode () : 0 );
9296 return result ;
9397 }
Original file line number Diff line number Diff line change @@ -34,23 +34,19 @@ public String getErrCode() {
3434 @ Override
3535 public boolean equals (Object o ) {
3636 if (this == o ) return true ;
37- if (o == null || getClass () != o . getClass ( )) return false ;
37+ if (!( o instanceof TxInternal )) return false ;
3838 if (!super .equals (o )) return false ;
3939
4040 TxInternal that = (TxInternal ) o ;
4141
4242 if (traceId != that .traceId ) return false ;
43- if (isError != that .isError ) return false ;
44- if (type != null ? !type .equals (that .type ) : that .type != null ) return false ;
4543 return errCode != null ? errCode .equals (that .errCode ) : that .errCode == null ;
4644 }
4745
4846 @ Override
4947 public int hashCode () {
5048 int result = super .hashCode ();
51- result = 31 * result + (type != null ? type .hashCode () : 0 );
5249 result = 31 * result + (int ) (traceId ^ (traceId >>> 32 ));
53- result = 31 * result + isError ;
5450 result = 31 * result + (errCode != null ? errCode .hashCode () : 0 );
5551 return result ;
5652 }
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ public class AccountTxTokenTest extends Assert {
2020
2121 @ Test
2222 public void correct () {
23- List <TxToken > txs = api .account ().txsToken ("0x05fBf1E3f105df6a4553f3C7f2ed93070A4BAB46 " );
23+ List <TxToken > txs = api .account ().txsToken ("0xE376F69ED2218076682e2b3B7b9099eC50aD68c4 " );
2424 assertNotNull (txs );
25- assertEquals (106 , txs .size ());
25+ assertEquals (3 , txs .size ());
2626 assertTxs (txs );
2727 assertNotEquals (0 , txs .get (0 ).getGasPrice ());
2828 assertNotEquals (-1 , txs .get (0 ).getNonce ());
29- assertNotNull (txs .get (0 ).toString ());
3029
30+ assertNotNull (txs .get (0 ).toString ());
3131 assertNotEquals (txs .get (0 ).toString (), txs .get (1 ).toString ());
3232
3333 assertNotEquals (txs .get (0 ), txs .get (1 ));
You can’t perform that action at this time.
0 commit comments