aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub/pub.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethpub/pub.go')
-rw-r--r--ethpub/pub.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go
index ee4c07cf1..4845b1d13 100644
--- a/ethpub/pub.go
+++ b/ethpub/pub.go
@@ -166,7 +166,7 @@ func (lib *PEthereum) Create(key, valueStr, gasStr, gasPriceStr, script string)
return lib.createTx(key, "", valueStr, gasStr, gasPriceStr, script)
}
-func GetAddressFromNameReg(stateManager *ethchain.StateManager, name string) []byte {
+func FindAddressInNameReg(stateManager *ethchain.StateManager, name string) []byte {
nameReg := EthereumConfig(stateManager).NameReg()
if nameReg != nil {
addr := ethutil.RightPadBytes([]byte(name), 32)
@@ -186,7 +186,7 @@ func (lib *PEthereum) createTx(key, recipient, valueStr, gasStr, gasPriceStr, sc
contractCreation = true
} else {
// Check if an address is stored by this address
- addr := GetAddressFromNameReg(lib.stateManager, recipient)
+ addr := FindAddressInNameReg(lib.stateManager, recipient)
if len(addr) > 0 {
hash = addr
} else {