diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-20 04:42:55 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-20 04:42:55 +0800 |
commit | 8585e59718e6b75a38833801f1725730c1b9fb01 (patch) | |
tree | 905a5751ae8aa5ec253ddaec5208600fc7aac586 /mist/ui_lib.go | |
parent | ae1de6593c31fbaa4429588cea2702dd5b01a722 (diff) | |
download | go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.gz go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.bz2 go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.lz go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.xz go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.tar.zst go-tangerine-8585e59718e6b75a38833801f1725730c1b9fb01.zip |
Re-writing ethereum.js. Added future/promises support.
Diffstat (limited to 'mist/ui_lib.go')
-rw-r--r-- | mist/ui_lib.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mist/ui_lib.go b/mist/ui_lib.go index 1434e28d0..334442f9f 100644 --- a/mist/ui_lib.go +++ b/mist/ui_lib.go @@ -248,3 +248,12 @@ func (self *UiLib) Transact(object map[string]interface{}) (*ethpipe.JSReceipt, dataStr, ) } + +func (self *UiLib) Compile(code string) (string, error) { + bcode, err := ethutil.Compile(code, false) + if err != nil { + return err.Error(), err + } + + return ethutil.Bytes2Hex(bcode), err +} |