aboutsummaryrefslogtreecommitdiffstats
path: root/contracts
diff options
context:
space:
mode:
authorLewis Marshall <lewis@lmars.net>2017-06-18 06:25:39 +0800
committerLewis Marshall <lewis@lmars.net>2017-06-26 18:51:33 +0800
commitf3359d5e585eef09648c7a06a6d3911704f61e73 (patch)
tree3f36e858799621da5df214f428e6dda5be27a173 /contracts
parentfeb29327066d6076d1802cdc1492d43a39cec276 (diff)
downloaddexon-f3359d5e585eef09648c7a06a6d3911704f61e73.tar
dexon-f3359d5e585eef09648c7a06a6d3911704f61e73.tar.gz
dexon-f3359d5e585eef09648c7a06a6d3911704f61e73.tar.bz2
dexon-f3359d5e585eef09648c7a06a6d3911704f61e73.tar.lz
dexon-f3359d5e585eef09648c7a06a6d3911704f61e73.tar.xz
dexon-f3359d5e585eef09648c7a06a6d3911704f61e73.tar.zst
dexon-f3359d5e585eef09648c7a06a6d3911704f61e73.zip
cmd/swarm: Support using Mainnet for resolving ENS names
Signed-off-by: Lewis Marshall <lewis@lmars.net>
Diffstat (limited to 'contracts')
-rw-r--r--contracts/ens/ens.go5
1 files changed, 5 insertions, 0 deletions
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