Default gas

This commit is contained in:
obscuren
2015-04-02 14:00:49 +02:00
parent 55b1c1546b
commit 1e28b424e7
3 changed files with 7 additions and 5 deletions

View File

@ -2,6 +2,7 @@ package rpc
import (
"encoding/json"
"fmt"
// "fmt"
"github.com/ethereum/go-ethereum/jsre"
"github.com/robertkrimen/otto"
@ -42,6 +43,7 @@ func (self *Jeth) Send(call otto.FunctionCall) (response otto.Value) {
var respif interface{}
err = self.ethApi.GetRequestReply(&req, &respif)
if err != nil {
fmt.Printf("error: %s\n", err)
return self.err(-32603, err.Error(), req.Id)
}
self.re.Set("ret_jsonrpc", jsonrpcver)