diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-09 23:55:18 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-09 23:55:18 +0800 |
commit | fb23a0cfe06b52919107879e646e7d9b066acb0e (patch) | |
tree | 68a46bdd4f1b51aff342b685dfeaa95bec48c972 /rpc/api.go | |
parent | dc7022cd613113b90b491cffe3eab30c102e6345 (diff) | |
download | go-tangerine-fb23a0cfe06b52919107879e646e7d9b066acb0e.tar go-tangerine-fb23a0cfe06b52919107879e646e7d9b066acb0e.tar.gz go-tangerine-fb23a0cfe06b52919107879e646e7d9b066acb0e.tar.bz2 go-tangerine-fb23a0cfe06b52919107879e646e7d9b066acb0e.tar.lz go-tangerine-fb23a0cfe06b52919107879e646e7d9b066acb0e.tar.xz go-tangerine-fb23a0cfe06b52919107879e646e7d9b066acb0e.tar.zst go-tangerine-fb23a0cfe06b52919107879e646e7d9b066acb0e.zip |
Remove support for compiling serpent
Diffstat (limited to 'rpc/api.go')
-rw-r--r-- | rpc/api.go | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/rpc/api.go b/rpc/api.go index ded91def1..64e9ed285 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -339,20 +339,11 @@ func (p *EthereumApi) GetData(args *GetDataArgs, reply *interface{}) error { } func (p *EthereumApi) GetCompilers(reply *interface{}) error { - c := []string{"serpent"} + c := []string{""} *reply = c return nil } -func (p *EthereumApi) CompileSerpent(args *CompileArgs, reply *interface{}) error { - res, err := ethutil.Compile(args.Source, false) - if err != nil { - return err - } - *reply = res - return nil -} - func (p *EthereumApi) DbPut(args *DbArgs, reply *interface{}) error { if err := args.requirements(); err != nil { return err @@ -528,13 +519,8 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error return p.GetCompilers(reply) case "eth_compileSolidity": case "eth_compileLLL": - return errNotImplemented case "eth_compileSerpent": - args := new(CompileArgs) - if err := json.Unmarshal(req.Params, &args); err != nil { - return err - } - return p.CompileSerpent(args, reply) + return errNotImplemented case "eth_newFilter": args := new(FilterOptions) if err := json.Unmarshal(req.Params, &args); err != nil { |