diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-02 05:59:18 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-02 05:59:18 +0800 |
commit | 00d3935aac3f5d50bae56650c45e49a8b8705099 (patch) | |
tree | da01968d729f41fa7f4470c2a4323b2dd422304b /ethpub | |
parent | bb2433ca1a953e610396707a67ca5eb73574e81f (diff) | |
download | dexon-00d3935aac3f5d50bae56650c45e49a8b8705099.tar dexon-00d3935aac3f5d50bae56650c45e49a8b8705099.tar.gz dexon-00d3935aac3f5d50bae56650c45e49a8b8705099.tar.bz2 dexon-00d3935aac3f5d50bae56650c45e49a8b8705099.tar.lz dexon-00d3935aac3f5d50bae56650c45e49a8b8705099.tar.xz dexon-00d3935aac3f5d50bae56650c45e49a8b8705099.tar.zst dexon-00d3935aac3f5d50bae56650c45e49a8b8705099.zip |
Removed old method
Diffstat (limited to 'ethpub')
-rw-r--r-- | ethpub/pub.go | 4 | ||||
-rw-r--r-- | ethpub/types.go | 2 |
2 files changed, 3 insertions, 3 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 { diff --git a/ethpub/types.go b/ethpub/types.go index 05031dea2..5d41269c8 100644 --- a/ethpub/types.go +++ b/ethpub/types.go @@ -164,7 +164,7 @@ func (c *PStateObject) GetStorage(address string) string { // still has some magical object so we can't rely on // undefined or null at the QML side if c.object != nil { - val := c.object.GetMem(ethutil.Big("0x" + address)) + val := c.object.GetStorage(ethutil.Big("0x" + address)) return val.BigInt().String() } |