From f3359d5e585eef09648c7a06a6d3911704f61e73 Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Sun, 18 Jun 2017 00:25:39 +0200 Subject: cmd/swarm: Support using Mainnet for resolving ENS names Signed-off-by: Lewis Marshall --- contracts/ens/ens.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'contracts') diff --git a/contracts/ens/ens.go b/contracts/ens/ens.go index 83ca9b63b..c292a1714 100644 --- a/contracts/ens/ens.go +++ b/contracts/ens/ens.go @@ -29,6 +29,11 @@ import ( "github.com/ethereum/go-ethereum/crypto" ) +var ( + MainNetAddress = common.HexToAddress("0x314159265dD8dbb310642f98f50C066173C1259b") + TestNetAddress = common.HexToAddress("0x112234455c3a32fd11230c42e7bccd4a84e02010") +) + // swarm domain name registry and resolver type ENS struct { *contract.ENSSession -- cgit