aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-07-07 13:00:58 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-07 17:30:55 +0800
commitc5cb6e8e70339b6641b7ce46cda04b83936213b3 (patch)
tree6ab24e55a8b4bd14b3a9c25917d440c03b875bfc /rpc
parent3791831081eb2d6e0dbfb3aa96f181dbb645c394 (diff)
downloaddexon-c5cb6e8e70339b6641b7ce46cda04b83936213b3.tar.gz
dexon-c5cb6e8e70339b6641b7ce46cda04b83936213b3.tar.zst
dexon-c5cb6e8e70339b6641b7ce46cda04b83936213b3.zip
fix/skip tests, adapt registrar to no contract address
registry initialisers now return the txhash which caller can use to retrieve receipt
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api/admin.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/rpc/api/admin.go b/rpc/api/admin.go
index 5d214e8d8..c5f026090 100644
--- a/rpc/api/admin.go
+++ b/rpc/api/admin.go
@@ -322,12 +322,12 @@ func (self *adminApi) SetGlobalRegistrar(req *shared.Request) (interface{}, erro
sender := common.HexToAddress(args.ContractAddress)
reg := registrar.New(self.xeth)
- err := reg.SetGlobalRegistrar(args.NameReg, sender)
+ txhash, err := reg.SetGlobalRegistrar(args.NameReg, sender)
if err != nil {
return false, err
}
- return registrar.GlobalRegistrarAddr, nil
+ return txhash, nil
}
func (self *adminApi) SetHashReg(req *shared.Request) (interface{}, error) {
@@ -338,12 +338,12 @@ func (self *adminApi) SetHashReg(req *shared.Request) (interface{}, error) {
reg := registrar.New(self.xeth)
sender := common.HexToAddress(args.Sender)
- err := reg.SetHashReg(args.HashReg, sender)
+ txhash, err := reg.SetHashReg(args.HashReg, sender)
if err != nil {
return false, err
}
- return registrar.HashRegAddr, nil
+ return txhash, nil
}
func (self *adminApi) SetUrlHint(req *shared.Request) (interface{}, error) {
@@ -356,12 +356,12 @@ func (self *adminApi) SetUrlHint(req *shared.Request) (interface{}, error) {
sender := common.HexToAddress(args.Sender)
reg := registrar.New(self.xeth)
- err := reg.SetUrlHint(urlHint, sender)
+ txhash, err := reg.SetUrlHint(urlHint, sender)
if err != nil {
return nil, err
}
- return registrar.UrlHintAddr, nil
+ return txhash, nil
}
func (self *adminApi) SaveInfo(req *shared.Request) (interface{}, error) {