aboutsummaryrefslogtreecommitdiffstats
path: root/ethpipe/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethpipe/config.go')
-rw-r--r--ethpipe/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/ethpipe/config.go b/ethpipe/config.go
index 5e57416d7..66708b26e 100644
--- a/ethpipe/config.go
+++ b/ethpipe/config.go
@@ -15,6 +15,11 @@ func (self *Config) Get(name string) *Object {
switch name {
case "NameReg":
addr = []byte{0}
+ case "DomainReg":
+ objectAddr := configCtrl.GetStorage(ethutil.BigD([]byte{0}))
+ domainAddr := (&Object{self.pipe.World().safeGet(objectAddr.Bytes())}).StorageString("DomainReg").Bytes()
+
+ return &Object{self.pipe.World().safeGet(domainAddr)}
default:
addr = ethutil.RightPadBytes([]byte(name), 32)
}