diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-22 21:25:33 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-22 21:25:33 +0800 |
commit | d186bf0dfece955feb797dda2b53cae8c89b786c (patch) | |
tree | c913a30268071eb3e831a79b109c5a29728d19d4 /cmd/mist/qml_container.go | |
parent | 9682a3ef3ec72a871708a9bba1133fa59b58ccb5 (diff) | |
download | dexon-d186bf0dfece955feb797dda2b53cae8c89b786c.tar dexon-d186bf0dfece955feb797dda2b53cae8c89b786c.tar.gz dexon-d186bf0dfece955feb797dda2b53cae8c89b786c.tar.bz2 dexon-d186bf0dfece955feb797dda2b53cae8c89b786c.tar.lz dexon-d186bf0dfece955feb797dda2b53cae8c89b786c.tar.xz dexon-d186bf0dfece955feb797dda2b53cae8c89b786c.tar.zst dexon-d186bf0dfece955feb797dda2b53cae8c89b786c.zip |
Fix Mist types build errors
Diffstat (limited to 'cmd/mist/qml_container.go')
-rw-r--r-- | cmd/mist/qml_container.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/mist/qml_container.go b/cmd/mist/qml_container.go index 778ef0e40..f2cabb474 100644 --- a/cmd/mist/qml_container.go +++ b/cmd/mist/qml_container.go @@ -25,7 +25,6 @@ import ( "runtime" "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/xeth" "github.com/obscuren/qml" ) @@ -68,7 +67,7 @@ func (app *QmlApplication) NewWatcher(quitChan chan bool) { // Events func (app *QmlApplication) NewBlock(block *types.Block) { - pblock := &xeth.Block{Number: int(block.NumberU64()), Hash: common.Bytes2Hex(block.Hash())} + pblock := &xeth.Block{Number: int(block.NumberU64()), Hash: block.Hash().Hex()} app.win.Call("onNewBlockCb", pblock) } |