File tree Expand file tree Collapse file tree 4 files changed +7
-0
lines changed Expand file tree Collapse file tree 4 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
13
13
14
14
* bump snapshot version to 4.12.3 [ #2101 ] ( https://github.com/hyperledger/web3j/pull/2101 )
15
15
* Add HSM kms implementation [ #2105 ] ( https://github.com/hyperledger/web3j/pull/2105 )
16
+ * Added support for Holesky [ #2111 ] ( https://github.com/hyperledger/web3j/pull/2111 )
16
17
17
18
### BREAKING CHANGES
18
19
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public class Contracts {
22
22
public static final String RINKEBY = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" ;
23
23
public static final String GOERLI = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" ;
24
24
public static final String SEPOLIA = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" ;
25
+ public static final String HOLESKY = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" ;
25
26
public static final String LINEA = "0x50130b669B28C339991d8676FA73CF122a121267" ;
26
27
public static final String LINEA_SEPOLIA = "0x5B2636F0f2137B4aE722C01dd5122D7d3e9541f7" ;
27
28
@@ -37,6 +38,8 @@ public static String resolveRegistryContract(String chainId) {
37
38
return GOERLI ;
38
39
} else if (chainIdLong .equals (ChainIdLong .SEPOLIA )) {
39
40
return SEPOLIA ;
41
+ } else if (chainIdLong .equals (ChainIdLong .HOLESKY )) {
42
+ return HOLESKY ;
40
43
} else if (chainIdLong .equals (ChainIdLong .LINEA )) {
41
44
return LINEA ;
42
45
} else if (chainIdLong .equals (ChainIdLong .LINEA_SEPOLIA )) {
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public class ChainIdLong {
20
20
public static final long RINKEBY = 4 ;
21
21
public static final long GOERLI = 5 ;
22
22
public static final long SEPOLIA = 11155111 ;
23
+ public static final long HOLESKY = 17000 ;
23
24
public static final long ROOTSTOCK_MAINNET = 30 ;
24
25
public static final long ROOTSTOCK_TESTNET = 31 ;
25
26
public static final long KOVAN = 42 ;
Original file line number Diff line number Diff line change 18
18
19
19
import static org .junit .jupiter .api .Assertions .assertEquals ;
20
20
import static org .junit .jupiter .api .Assertions .assertThrows ;
21
+ import static org .web3j .ens .Contracts .HOLESKY ;
21
22
import static org .web3j .ens .Contracts .LINEA ;
22
23
import static org .web3j .ens .Contracts .LINEA_SEPOLIA ;
23
24
import static org .web3j .ens .Contracts .MAINNET ;
@@ -35,6 +36,7 @@ public void testResolveRegistryContract() {
35
36
assertEquals (resolveRegistryContract (ChainIdLong .ROPSTEN + "" ), (ROPSTEN ));
36
37
assertEquals (resolveRegistryContract (ChainIdLong .RINKEBY + "" ), (RINKEBY ));
37
38
assertEquals (resolveRegistryContract (ChainIdLong .SEPOLIA + "" ), (SEPOLIA ));
39
+ assertEquals (resolveRegistryContract (ChainIdLong .HOLESKY + "" ), (HOLESKY ));
38
40
assertEquals (resolveRegistryContract (ChainIdLong .LINEA + "" ), (LINEA ));
39
41
assertEquals (resolveRegistryContract (ChainIdLong .LINEA_SEPOLIA + "" ), (LINEA_SEPOLIA ));
40
42
}
You can’t perform that action at this time.
0 commit comments