Re-writing ethereum.js. Added future/promises support.

This commit is contained in:
obscuren
2014-09-19 22:42:55 +02:00
parent ae1de6593c
commit 8585e59718
8 changed files with 2488 additions and 385 deletions

View File

@ -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
}