Move GetRequestReply to EthereumApi

Off of jsonWrapper
This commit is contained in:
Taylor Gerring
2015-01-20 13:58:51 -06:00
parent a6d4ce2630
commit 215780ab56
3 changed files with 48 additions and 51 deletions

View File

@ -89,7 +89,7 @@ func apiHandler(xeth *EthereumApi) http.Handler {
}
var response interface{}
reserr := JSON.GetRequestReply(xeth, &reqParsed, &response)
reserr := xeth.GetRequestReply(&reqParsed, &response)
if reserr != nil {
jsonlogger.Errorln(reserr)
JSON.Send(w, &RpcErrorResponse{JsonRpc: reqParsed.JsonRpc, ID: reqParsed.ID, Error: true, ErrorText: reserr.Error()})