From 9382672c49d3d20b08c7eadf497c87d6ef3c9d34 Mon Sep 17 00:00:00 2001 From: Nischal Sharma Date: Mon, 19 Aug 2024 22:47:23 +0530 Subject: [PATCH] added test and changelog Signed-off-by: Nischal Sharma --- CHANGELOG.md | 1 + core/src/test/java/org/web3j/ens/ContractsTest.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dabd7041e..a08aabdfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features * bump snapshot version to 4.12.2 [#2093](https://github.com/hyperledger/web3j/pull/2093) +* Adds Support for Linea ENS [#2094](https://github.com/hyperledger/web3j/pull/2094) ### BREAKING CHANGES diff --git a/core/src/test/java/org/web3j/ens/ContractsTest.java b/core/src/test/java/org/web3j/ens/ContractsTest.java index 39458b5e6..273a5a0b3 100644 --- a/core/src/test/java/org/web3j/ens/ContractsTest.java +++ b/core/src/test/java/org/web3j/ens/ContractsTest.java @@ -18,6 +18,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.web3j.ens.Contracts.LINEA; +import static org.web3j.ens.Contracts.LINEA_SEPOLIA; import static org.web3j.ens.Contracts.MAINNET; import static org.web3j.ens.Contracts.RINKEBY; import static org.web3j.ens.Contracts.ROPSTEN; @@ -33,6 +35,8 @@ public void testResolveRegistryContract() { assertEquals(resolveRegistryContract(ChainIdLong.ROPSTEN + ""), (ROPSTEN)); assertEquals(resolveRegistryContract(ChainIdLong.RINKEBY + ""), (RINKEBY)); assertEquals(resolveRegistryContract(ChainIdLong.SEPOLIA + ""), (SEPOLIA)); + assertEquals(resolveRegistryContract(ChainIdLong.LINEA + ""), (LINEA)); + assertEquals(resolveRegistryContract(ChainIdLong.LINEA_SEPOLIA + ""), (LINEA_SEPOLIA)); } @Test