From 3d566e0a34cd76da025eed08de916e4c91ce0947 Mon Sep 17 00:00:00 2001 From: Aranha Date: Sun, 16 Feb 2020 19:06:21 +0000 Subject: [PATCH 1/2] chore: ENS Registry migration #237 --- Sources/web3swift/Utils/ENS/ENSRegistry.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/web3swift/Utils/ENS/ENSRegistry.swift b/Sources/web3swift/Utils/ENS/ENSRegistry.swift index abb86c14a..dfd0fd8c2 100644 --- a/Sources/web3swift/Utils/ENS/ENSRegistry.swift +++ b/Sources/web3swift/Utils/ENS/ENSRegistry.swift @@ -19,7 +19,7 @@ public extension ENS { self.web3 = web3 switch web3.provider.network { case .Mainnet?: - registryContractAddress = EthereumAddress("0x314159265dd8dbb310642f98f50c066173c1259b") + registryContractAddress = EthereumAddress("0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e") case .Rinkeby?: registryContractAddress = EthereumAddress("0xe7410170f87102df0055eb195163a03b7f2bff4a") case .Ropsten?: From 7625ac4b5aceb1dc77910f14b29b6e18c401a142 Mon Sep 17 00:00:00 2001 From: Aranha <50056110+aranhaagency@users.noreply.github.com> Date: Mon, 17 Feb 2020 02:55:57 -0300 Subject: [PATCH 2/2] fixed ens testnet address [The ENS registry is deployed at 0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e. This same address is used across Mainnet, Ropsten, Rinkeby and Goerli.] (https://docs.ens.domains/ens-deployments) --- Sources/web3swift/Utils/ENS/ENSRegistry.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/web3swift/Utils/ENS/ENSRegistry.swift b/Sources/web3swift/Utils/ENS/ENSRegistry.swift index dfd0fd8c2..b89f05086 100644 --- a/Sources/web3swift/Utils/ENS/ENSRegistry.swift +++ b/Sources/web3swift/Utils/ENS/ENSRegistry.swift @@ -21,9 +21,9 @@ public extension ENS { case .Mainnet?: registryContractAddress = EthereumAddress("0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e") case .Rinkeby?: - registryContractAddress = EthereumAddress("0xe7410170f87102df0055eb195163a03b7f2bff4a") + registryContractAddress = EthereumAddress("0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e") case .Ropsten?: - registryContractAddress = EthereumAddress("0x112234455c3a32fd11230c42e7bccd4a84e02010") + registryContractAddress = EthereumAddress("0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e") default: let url = web3.provider.url.absoluteString if url.contains("https://rpc.goerli.mudit.blog")