diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-24 18:30:41 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-24 18:30:41 +0800 |
commit | a06a84d19b24da4005bc4d150f071ec4a703521b (patch) | |
tree | 68b5ff4d60831d278cea13ea2a95de8af04ff3ed /ethereal/ui_lib.go | |
parent | e7a80ec68165755678647f2d3e9b475d492a70dd (diff) | |
download | go-tangerine-a06a84d19b24da4005bc4d150f071ec4a703521b.tar go-tangerine-a06a84d19b24da4005bc4d150f071ec4a703521b.tar.gz go-tangerine-a06a84d19b24da4005bc4d150f071ec4a703521b.tar.bz2 go-tangerine-a06a84d19b24da4005bc4d150f071ec4a703521b.tar.lz go-tangerine-a06a84d19b24da4005bc4d150f071ec4a703521b.tar.xz go-tangerine-a06a84d19b24da4005bc4d150f071ec4a703521b.tar.zst go-tangerine-a06a84d19b24da4005bc4d150f071ec4a703521b.zip |
Refactored to reflect the new VM and State
Diffstat (limited to 'ethereal/ui_lib.go')
-rw-r--r-- | ethereal/ui_lib.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethereal/ui_lib.go b/ethereal/ui_lib.go index 997a3391a..6a62fa1df 100644 --- a/ethereal/ui_lib.go +++ b/ethereal/ui_lib.go @@ -78,8 +78,8 @@ func (ui *UiLib) AssetPath(p string) string { func (self *UiLib) StartDbWithContractAndData(contractHash, data string) { dbWindow := NewDebuggerWindow(self) object := self.eth.StateManager().CurrentState().GetStateObject(ethutil.Hex2Bytes(contractHash)) - if len(object.Script()) > 0 { - dbWindow.SetCode("0x" + ethutil.Bytes2Hex(object.Script())) + if len(object.Code) > 0 { + dbWindow.SetCode("0x" + ethutil.Bytes2Hex(object.Code)) } dbWindow.SetData("0x" + data) |