aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/ws
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-02-11 18:56:29 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-02-11 18:56:29 +0800
commitd613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9 (patch)
treee7d6589314ec1490c45adb2ac5b94423a250eb06 /rpc/ws
parentcfddb7f3cd3b8cecb1e59412ce4db5769f6c8007 (diff)
downloadgo-tangerine-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.gz
go-tangerine-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.tar.zst
go-tangerine-d613bf69bf3fd0cfbe28a2f68c87421f7d5bccf9.zip
#295 Allow RPC ID to be string
Diffstat (limited to 'rpc/ws')
-rw-r--r--rpc/ws/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/ws/server.go b/rpc/ws/server.go
index fe6af042f..100713c10 100644
--- a/rpc/ws/server.go
+++ b/rpc/ws/server.go
@@ -109,7 +109,7 @@ func sockHandler(api *rpc.EthereumApi) websocket.Handler {
if reserr != nil {
wslogger.Warnln(reserr)
jsonerr := &rpc.RpcErrorObject{-32603, reserr.Error()}
- JSON.Send(conn, &rpc.RpcErrorResponse{JsonRpc: jsonrpcver, ID: &reqParsed.ID, Error: jsonerr})
+ JSON.Send(conn, &rpc.RpcErrorResponse{JsonRpc: jsonrpcver, ID: reqParsed.ID, Error: jsonerr})
continue
}