Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1d1aa6f

Browse files
committed
[1.2.1]
IProxyApi#storageAt marked as ExperimentalTests fixed
1 parentbc3449e commit1d1aa6f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎src/main/java/io/api/etherscan/core/IProxyApi.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
importio.api.etherscan.model.proxy.BlockProxy;
55
importio.api.etherscan.model.proxy.ReceiptProxy;
66
importio.api.etherscan.model.proxy.TxProxy;
7+
importorg.jetbrains.annotations.ApiStatus.Experimental;
78
importorg.jetbrains.annotations.NotNull;
89

910
importjava.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(Stringaddress,longposition)throwsApiException;
144146

‎src/test/java/io/api/etherscan/account/AccountTxInternalByHashTest.java‎

Lines changed: 0 additions & 1 deletion
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());

‎src/test/java/io/api/etherscan/proxy/ProxyStorageApiTest.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ public class ProxyStorageApiTest extends ApiRunner {
1818
@Test
1919
publicvoidcorrect() {
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)

[8]ページ先頭

©2009-2025 Movatter.jp