Skip to content

Commit

Permalink
fix consumer unmarshaling format by omitting the inheritance form mar…
Browse files Browse the repository at this point in the history
…shal (lavanet#631)
  • Loading branch information
omerlavanet authored Jul 19, 2023
1 parent 26691d6 commit 2a53588
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
var ErrFailedToConvertMessage = sdkerrors.New("RPC error", 1000, "failed to convert a message")

type JsonrpcMessage struct {
Version string `json:"jsonrpc,omitempty"`
ID json.RawMessage `json:"id,omitempty"`
Method string `json:"method,omitempty"`
Params interface{} `json:"params,omitempty"`
Error *rpcclient.JsonError `json:"error,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
chainproxy.BaseMessage
Version string `json:"jsonrpc,omitempty"`
ID json.RawMessage `json:"id,omitempty"`
Method string `json:"method,omitempty"`
Params interface{} `json:"params,omitempty"`
Error *rpcclient.JsonError `json:"error,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
chainproxy.BaseMessage `json:"-"`
}

func ConvertJsonRPCMsg(rpcMsg *rpcclient.JsonrpcMessage) (*JsonrpcMessage, error) {
Expand Down

0 comments on commit 2a53588

Please sign in to comment.