diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-28 22:14:24 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-28 22:14:24 +0800 |
commit | d4f9daa631fa832d556c16f3a29eaf73bd849f32 (patch) | |
tree | 7410d5e0d7516248e3e8a2e895d4d78f3ce82d0d /ethereal/ui | |
parent | 1eda1d25b0d27fe57287698fb883c9153ddda292 (diff) | |
download | go-tangerine-d4f9daa631fa832d556c16f3a29eaf73bd849f32.tar go-tangerine-d4f9daa631fa832d556c16f3a29eaf73bd849f32.tar.gz go-tangerine-d4f9daa631fa832d556c16f3a29eaf73bd849f32.tar.bz2 go-tangerine-d4f9daa631fa832d556c16f3a29eaf73bd849f32.tar.lz go-tangerine-d4f9daa631fa832d556c16f3a29eaf73bd849f32.tar.xz go-tangerine-d4f9daa631fa832d556c16f3a29eaf73bd849f32.tar.zst go-tangerine-d4f9daa631fa832d556c16f3a29eaf73bd849f32.zip |
Refactor hex encode and remove coupling of popup to main window
Diffstat (limited to 'ethereal/ui')
-rw-r--r-- | ethereal/ui/ui_lib.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ethereal/ui/ui_lib.go b/ethereal/ui/ui_lib.go index 73ec67c86..9c4301ffe 100644 --- a/ethereal/ui/ui_lib.go +++ b/ethereal/ui/ui_lib.go @@ -2,7 +2,6 @@ package ethui import ( "bitbucket.org/kardianos/osext" - "encoding/hex" "github.com/ethereum/eth-go" "github.com/ethereum/eth-go/ethchain" "github.com/ethereum/eth-go/ethutil" @@ -94,7 +93,7 @@ func (self *UiLib) StartDbWithContractAndData(contractHash, data string) { dbWindow := NewDebuggerWindow(self) object := self.eth.StateManager().CurrentState().GetStateObject(ethutil.FromHex(contractHash)) if len(object.Script()) > 0 { - dbWindow.SetCode("0x" + hex.EncodeToString(object.Script())) + dbWindow.SetCode("0x" + ethutil.Hex(object.Script())) } dbWindow.SetData(data) |