diff options
-rw-r--r-- | ethpipe/config.go | 4 | ||||
-rw-r--r-- | ethpub/pub.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ethpipe/config.go b/ethpipe/config.go index 66708b26e..1e246c7b4 100644 --- a/ethpipe/config.go +++ b/ethpipe/config.go @@ -15,9 +15,9 @@ func (self *Config) Get(name string) *Object { switch name { case "NameReg": addr = []byte{0} - case "DomainReg": + case "DnsReg": objectAddr := configCtrl.GetStorage(ethutil.BigD([]byte{0})) - domainAddr := (&Object{self.pipe.World().safeGet(objectAddr.Bytes())}).StorageString("DomainReg").Bytes() + domainAddr := (&Object{self.pipe.World().safeGet(objectAddr.Bytes())}).StorageString("DnsReg").Bytes() return &Object{self.pipe.World().safeGet(domainAddr)} default: diff --git a/ethpub/pub.go b/ethpub/pub.go index 3fb4c4920..ab2aae599 100644 --- a/ethpub/pub.go +++ b/ethpub/pub.go @@ -75,7 +75,7 @@ func (self *PEthereum) LookupDomain(domain string) string { domain = string(ethcrypto.Sha3Bin([]byte(domain))) } - return strings.Trim(world.Config().Get("DomainReg").StorageString(domain).Str(), "\x00") + return strings.Trim(world.Config().Get("DnsReg").StorageString(domain).Str(), "\x00") } func (lib *PEthereum) GetBlock(hexHash string) *PBlock { |