aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui_lib.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-07-31 00:02:43 +0800
committerzelig <viktor.tron@gmail.com>2014-07-31 00:02:43 +0800
commit34e937c9761f963ac4d3c9781d72ae92e54c0761 (patch)
tree9a4c78944acd6ee924eb86916f32d508de0b66a6 /ethereal/ui_lib.go
parent2f5c95610feb77dd714bf9295d6127bef58f31bc (diff)
parent834803f1e8ce45040045359185c8b8d75f63de2c (diff)
downloadgo-tangerine-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar
go-tangerine-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.gz
go-tangerine-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.bz2
go-tangerine-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.lz
go-tangerine-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.xz
go-tangerine-34e937c9761f963ac4d3c9781d72ae92e54c0761.tar.zst
go-tangerine-34e937c9761f963ac4d3c9781d72ae92e54c0761.zip
merge upstream
Diffstat (limited to 'ethereal/ui_lib.go')
-rw-r--r--ethereal/ui_lib.go4
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)