diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-20 21:19:34 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-20 21:19:34 +0800 |
commit | ea9a549bbdc8377bca73f1417f2dc4a18396a382 (patch) | |
tree | f4f8719ad52f17b3db4b26626a9f5932870f9009 /cmd/mist | |
parent | 5c975dd4ed7adb29453fa28e64c0193d323cae99 (diff) | |
download | dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.gz dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.tar.zst dexon-ea9a549bbdc8377bca73f1417f2dc4a18396a382.zip |
Removed exported fields from state object and added proper set/getters
Diffstat (limited to 'cmd/mist')
-rw-r--r-- | cmd/mist/ui_lib.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/mist/ui_lib.go b/cmd/mist/ui_lib.go index 1a4d21012..4fa6e8e55 100644 --- a/cmd/mist/ui_lib.go +++ b/cmd/mist/ui_lib.go @@ -146,8 +146,8 @@ func (ui *UiLib) AssetPath(p string) string { func (self *UiLib) StartDbWithContractAndData(contractHash, data string) { dbWindow := NewDebuggerWindow(self) object := self.eth.ChainManager().State().GetStateObject(ethutil.Hex2Bytes(contractHash)) - if len(object.Code) > 0 { - dbWindow.SetCode(ethutil.Bytes2Hex(object.Code)) + if len(object.Code()) > 0 { + dbWindow.SetCode(ethutil.Bytes2Hex(object.Code())) } dbWindow.SetData(data) |