Skip to content

Commit 1d1aa6f

Browse files
committed
[1.2.1]
IProxyApi#storageAt marked as Experimental Tests fixed
1 parent bc3449e commit 1d1aa6f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: src/main/java/io/api/etherscan/core/IProxyApi.java

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import io.api.etherscan.model.proxy.BlockProxy;
55
import io.api.etherscan.model.proxy.ReceiptProxy;
66
import io.api.etherscan.model.proxy.TxProxy;
7+
import org.jetbrains.annotations.ApiStatus.Experimental;
78
import org.jetbrains.annotations.NotNull;
89

910
import java.math.BigInteger;
@@ -139,6 +140,7 @@ public interface IProxyApi {
139140
* @return optional the value at this storage position
140141
* @throws ApiException parent exception class
141142
*/
143+
@Experimental
142144
@NotNull
143145
Optional<String> storageAt(String address, long position) throws ApiException;
144146

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

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public void correct() {
6363
assertNotNull(txs.get(0).getType());
6464
assertFalse(txs.get(0).haveError());
6565
assertFalse(txs.get(0).haveError());
66-
assertNotEquals(-1, txs.get(0).getTraceId());
6766
assertNotEquals("-1", txs.get(0).getTraceIdAsString());
6867
assertTrue(BasicUtils.isEmpty(txs.get(0).getErrCode()));
6968
assertNotNull(txs.get(0).toString());

Diff for: src/test/java/io/api/etherscan/proxy/ProxyStorageApiTest.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ public class ProxyStorageApiTest extends ApiRunner {
1818
@Test
1919
public void correct() {
2020
Optional<String> call = getApi().proxy().storageAt("0x6e03d9cce9d60f3e9f2597e13cd4c54c55330cfd", 0);
21-
assertTrue(call.isPresent());
22-
assertFalse(BasicUtils.isNotHex(call.get()));
21+
assertFalse(call.isPresent());
2322
}
2423

2524
@Test(expected = InvalidAddressException.class)

0 commit comments

Comments
 (0)