aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui/library.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-02 20:08:08 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-02 20:08:08 +0800
commit231ad9b562f4870d6fa6b250e791437d330c5535 (patch)
treef1af29b9485d98f6e3ea7c8b588beb7bd5181512 /ethereal/ui/library.go
parent60f9966cd8f991967882dd61e602822a95681d85 (diff)
parent2582d719b2a8a3facac4410dd9a2ddaf5000f038 (diff)
downloadgo-tangerine-231ad9b562f4870d6fa6b250e791437d330c5535.tar
go-tangerine-231ad9b562f4870d6fa6b250e791437d330c5535.tar.gz
go-tangerine-231ad9b562f4870d6fa6b250e791437d330c5535.tar.bz2
go-tangerine-231ad9b562f4870d6fa6b250e791437d330c5535.tar.lz
go-tangerine-231ad9b562f4870d6fa6b250e791437d330c5535.tar.xz
go-tangerine-231ad9b562f4870d6fa6b250e791437d330c5535.tar.zst
go-tangerine-231ad9b562f4870d6fa6b250e791437d330c5535.zip
Merge branch 'develop' into feature/rpc
Diffstat (limited to 'ethereal/ui/library.go')
-rw-r--r--ethereal/ui/library.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/ethereal/ui/library.go b/ethereal/ui/library.go
index 231fd96e7..1328cd6b7 100644
--- a/ethereal/ui/library.go
+++ b/ethereal/ui/library.go
@@ -4,6 +4,7 @@ import (
"encoding/hex"
"fmt"
"github.com/ethereum/eth-go/ethchain"
+ "github.com/ethereum/eth-go/ethpub"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/go-ethereum/utils"
"github.com/obscuren/secp256k1-go"
@@ -47,14 +48,14 @@ func (lib *EthLib) GetKey() string {
return ethutil.Hex(ethutil.Config.Db.GetKeys()[0].Address())
}
-func (lib *EthLib) GetStateObject(address string) *utils.PStateObject {
+func (lib *EthLib) GetStateObject(address string) *ethpub.PStateObject {
stateObject := lib.stateManager.ProcState().GetContract(ethutil.FromHex(address))
if stateObject != nil {
- return utils.NewPStateObject(stateObject)
+ return ethpub.NewPStateObject(stateObject)
}
// See GetStorage for explanation on "nil"
- return utils.NewPStateObject(nil)
+ return ethpub.NewPStateObject(nil)
}
func (lib *EthLib) Watch(addr, storageAddr string) {
@@ -115,7 +116,7 @@ func (lib *EthLib) Transact(recipient, valueStr, gasStr, gasPriceStr, dataStr st
return ethutil.Hex(tx.Hash()), nil
}
-func (lib *EthLib) GetBlock(hexHash string) *utils.PBlock {
+func (lib *EthLib) GetBlock(hexHash string) *ethpub.PBlock {
hash, err := hex.DecodeString(hexHash)
if err != nil {
return nil
@@ -123,5 +124,5 @@ func (lib *EthLib) GetBlock(hexHash string) *utils.PBlock {
block := lib.blockChain.GetBlock(hash)
- return &utils.PBlock{Number: int(block.BlockInfo().Number), Hash: ethutil.Hex(block.Hash())}
+ return &ethpub.PBlock{Number: int(block.BlockInfo().Number), Hash: ethutil.Hex(block.Hash())}
}