File tree 4 files changed +13
-11
lines changed
main/java/io/api/etherscan/model
test/java/io/api/etherscan/account
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
14
14
<dependency >
15
15
<groupId >com.github.goodforgod</groupId >
16
16
<artifactId >java-etherscan-api</artifactId >
17
- <version >1.0.1 </version >
17
+ <version >1.0.2 </version >
18
18
</dependency >
19
19
```
20
20
21
21
** Gradle**
22
22
``` groovy
23
23
dependencies {
24
- compile 'com.github.goodforgod:java-etherscan-api:1.0.1 '
24
+ compile 'com.github.goodforgod:java-etherscan-api:1.0.2 '
25
25
}
26
26
```
27
27
@@ -165,6 +165,8 @@ Token API methods migrated to [Account](#account-api) & [Stats](#stats-api) resp
165
165
166
166
## Version History
167
167
168
+ ** 1.0.2** - Minor http client improvements.
169
+
168
170
** 1.0.1** - Gorli & TOBALABA networks support.
169
171
170
172
** 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() {
73
73
@ Override
74
74
public boolean equals (Object o ) {
75
75
if (this == o ) return true ;
76
- if (o == null || getClass () != o . getClass ( )) return false ;
76
+ if (!( o instanceof BaseTx )) return false ;
77
77
78
78
BaseTx baseTx = (BaseTx ) o ;
79
79
80
80
if (blockNumber != baseTx .blockNumber ) return false ;
81
81
if (timeStamp != null ? !timeStamp .equals (baseTx .timeStamp ) : baseTx .timeStamp != null ) return false ;
82
82
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 ;
83
85
return value != null ? value .equals (baseTx .value ) : baseTx .value == null ;
84
86
}
85
87
@@ -88,6 +90,8 @@ public int hashCode() {
88
90
int result = (int ) (blockNumber ^ (blockNumber >>> 32 ));
89
91
result = 31 * result + (timeStamp != null ? timeStamp .hashCode () : 0 );
90
92
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 );
91
95
result = 31 * result + (value != null ? value .hashCode () : 0 );
92
96
return result ;
93
97
}
Original file line number Diff line number Diff line change @@ -34,23 +34,19 @@ public String getErrCode() {
34
34
@ Override
35
35
public boolean equals (Object o ) {
36
36
if (this == o ) return true ;
37
- if (o == null || getClass () != o . getClass ( )) return false ;
37
+ if (!( o instanceof TxInternal )) return false ;
38
38
if (!super .equals (o )) return false ;
39
39
40
40
TxInternal that = (TxInternal ) o ;
41
41
42
42
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 ;
45
43
return errCode != null ? errCode .equals (that .errCode ) : that .errCode == null ;
46
44
}
47
45
48
46
@ Override
49
47
public int hashCode () {
50
48
int result = super .hashCode ();
51
- result = 31 * result + (type != null ? type .hashCode () : 0 );
52
49
result = 31 * result + (int ) (traceId ^ (traceId >>> 32 ));
53
- result = 31 * result + isError ;
54
50
result = 31 * result + (errCode != null ? errCode .hashCode () : 0 );
55
51
return result ;
56
52
}
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ public class AccountTxTokenTest extends Assert {
20
20
21
21
@ Test
22
22
public void correct () {
23
- List <TxToken > txs = api .account ().txsToken ("0x05fBf1E3f105df6a4553f3C7f2ed93070A4BAB46 " );
23
+ List <TxToken > txs = api .account ().txsToken ("0xE376F69ED2218076682e2b3B7b9099eC50aD68c4 " );
24
24
assertNotNull (txs );
25
- assertEquals (106 , txs .size ());
25
+ assertEquals (3 , txs .size ());
26
26
assertTxs (txs );
27
27
assertNotEquals (0 , txs .get (0 ).getGasPrice ());
28
28
assertNotEquals (-1 , txs .get (0 ).getNonce ());
29
- assertNotNull (txs .get (0 ).toString ());
30
29
30
+ assertNotNull (txs .get (0 ).toString ());
31
31
assertNotEquals (txs .get (0 ).toString (), txs .get (1 ).toString ());
32
32
33
33
assertNotEquals (txs .get (0 ), txs .get (1 ));
You can’t perform that action at this time.
0 commit comments