diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-02 18:08:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-02 18:08:15 +0800 |
commit | 5a692b9f2bf265251b6f1faf171f55489b65b3de (patch) | |
tree | 735e88529c06133a8ee9315a2333cb0c69748ec6 /ethereal/ui/library.go | |
parent | 471bd398f380bc26ba3144a0834092036565e429 (diff) | |
download | dexon-5a692b9f2bf265251b6f1faf171f55489b65b3de.tar dexon-5a692b9f2bf265251b6f1faf171f55489b65b3de.tar.gz dexon-5a692b9f2bf265251b6f1faf171f55489b65b3de.tar.bz2 dexon-5a692b9f2bf265251b6f1faf171f55489b65b3de.tar.lz dexon-5a692b9f2bf265251b6f1faf171f55489b65b3de.tar.xz dexon-5a692b9f2bf265251b6f1faf171f55489b65b3de.tar.zst dexon-5a692b9f2bf265251b6f1faf171f55489b65b3de.zip |
Moved API
Diffstat (limited to 'ethereal/ui/library.go')
-rw-r--r-- | ethereal/ui/library.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ethereal/ui/library.go b/ethereal/ui/library.go index 70462a93d..231fd96e7 100644 --- a/ethereal/ui/library.go +++ b/ethereal/ui/library.go @@ -47,14 +47,14 @@ func (lib *EthLib) GetKey() string { return ethutil.Hex(ethutil.Config.Db.GetKeys()[0].Address()) } -func (lib *EthLib) GetStateObject(address string) *QStateObject { +func (lib *EthLib) GetStateObject(address string) *utils.PStateObject { stateObject := lib.stateManager.ProcState().GetContract(ethutil.FromHex(address)) if stateObject != nil { - return NewQStateObject(stateObject) + return utils.NewPStateObject(stateObject) } // See GetStorage for explanation on "nil" - return NewQStateObject(nil) + return utils.NewPStateObject(nil) } func (lib *EthLib) Watch(addr, storageAddr string) { @@ -115,7 +115,7 @@ func (lib *EthLib) Transact(recipient, valueStr, gasStr, gasPriceStr, dataStr st return ethutil.Hex(tx.Hash()), nil } -func (lib *EthLib) GetBlock(hexHash string) *QBlock { +func (lib *EthLib) GetBlock(hexHash string) *utils.PBlock { hash, err := hex.DecodeString(hexHash) if err != nil { return nil @@ -123,5 +123,5 @@ func (lib *EthLib) GetBlock(hexHash string) *QBlock { block := lib.blockChain.GetBlock(hash) - return &QBlock{Number: int(block.BlockInfo().Number), Hash: ethutil.Hex(block.Hash())} + return &utils.PBlock{Number: int(block.BlockInfo().Number), Hash: ethutil.Hex(block.Hash())} } |