Remove Compile() from Mist

It's currently preventing mist from being build and taking down Travis with it.
This commit is contained in:
Maran 2015-03-16 16:53:17 +01:00
parent 3cf51d5479
commit 0858fae12f
2 changed files with 3 additions and 16 deletions

View file

@ -26,8 +26,8 @@ import (
"strconv" "strconv"
"github.com/ethereum/go-ethereum/cmd/utils" "github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/state" "github.com/ethereum/go-ethereum/state"
) )
@ -39,11 +39,7 @@ type plugin struct {
func (gui *Gui) Transact(from, recipient, value, gas, gasPrice, d string) (string, error) { func (gui *Gui) Transact(from, recipient, value, gas, gasPrice, d string) (string, error) {
var data string var data string
if len(recipient) == 0 { if len(recipient) == 0 {
code, err := common.Compile(d, false) data = d
if err != nil {
return "", err
}
data = common.Bytes2Hex(code)
} else { } else {
data = common.Bytes2Hex(utils.FormatTransactionData(d)) data = common.Bytes2Hex(utils.FormatTransactionData(d))
} }

View file

@ -25,9 +25,9 @@ import (
"io/ioutil" "io/ioutil"
"path" "path"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth" "github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/event/filter" "github.com/ethereum/go-ethereum/event/filter"
"github.com/ethereum/go-ethereum/javascript" "github.com/ethereum/go-ethereum/javascript"
"github.com/ethereum/go-ethereum/xeth" "github.com/ethereum/go-ethereum/xeth"
@ -137,15 +137,6 @@ func (self *UiLib) Transact(params map[string]interface{}) (string, error) {
) )
} }
func (self *UiLib) Compile(code string) (string, error) {
bcode, err := common.Compile(code, false)
if err != nil {
return err.Error(), err
}
return common.Bytes2Hex(bcode), err
}
func (self *UiLib) Call(params map[string]interface{}) (string, error) { func (self *UiLib) Call(params map[string]interface{}) (string, error) {
object := mapToTxParams(params) object := mapToTxParams(params)