diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-15 14:21:54 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-15 14:21:54 +0800 |
commit | 16ecb1e2eaf5c7a17a29a35d33a02905fd45fe02 (patch) | |
tree | 57f51cde219658f18ddcb3cae44e126ee07a73fb /rpc/messages.go | |
parent | 31ffca6d8a777c164776642368034d84984c1f4c (diff) | |
download | go-tangerine-16ecb1e2eaf5c7a17a29a35d33a02905fd45fe02.tar go-tangerine-16ecb1e2eaf5c7a17a29a35d33a02905fd45fe02.tar.gz go-tangerine-16ecb1e2eaf5c7a17a29a35d33a02905fd45fe02.tar.bz2 go-tangerine-16ecb1e2eaf5c7a17a29a35d33a02905fd45fe02.tar.lz go-tangerine-16ecb1e2eaf5c7a17a29a35d33a02905fd45fe02.tar.xz go-tangerine-16ecb1e2eaf5c7a17a29a35d33a02905fd45fe02.tar.zst go-tangerine-16ecb1e2eaf5c7a17a29a35d33a02905fd45fe02.zip |
rpc
- camelcase fields dont play nice with otto value magic: JsonRpc -> Jsonrpc, ID -> Id
- jeth: ethereum.js rpc transport provider direct bridge between js and ethereumApi via otto jsre
Diffstat (limited to 'rpc/messages.go')
-rw-r--r-- | rpc/messages.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rpc/messages.go b/rpc/messages.go index 781394196..7f5ebab11 100644 --- a/rpc/messages.go +++ b/rpc/messages.go @@ -83,21 +83,21 @@ func NewValidationError(param string, msg string) error { } type RpcRequest struct { - ID interface{} `json:"id"` - JsonRpc string `json:"jsonrpc"` + Id interface{} `json:"id"` + Jsonrpc string `json:"jsonrpc"` Method string `json:"method"` Params json.RawMessage `json:"params"` } type RpcSuccessResponse struct { - ID interface{} `json:"id"` - JsonRpc string `json:"jsonrpc"` + Id interface{} `json:"id"` + Jsonrpc string `json:"jsonrpc"` Result interface{} `json:"result"` } type RpcErrorResponse struct { - ID interface{} `json:"id"` - JsonRpc string `json:"jsonrpc"` + Id interface{} `json:"id"` + Jsonrpc string `json:"jsonrpc"` Error *RpcErrorObject `json:"error"` } |