Skip to content

Commit

Permalink
Events now serialize properly over websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Feb 23, 2018
1 parent 4d8b3d9 commit 03286a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/client/httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package client

import (
"context"
"encoding/json"
"sync"

"github.com/pkg/errors"

ctypes "github.com/tendermint/tendermint/rpc/core/types"
rpcclient "github.com/tendermint/tendermint/rpc/lib/client"
"github.com/tendermint/tendermint/types"
"github.com/tendermint/tendermint/wire"
cmn "github.com/tendermint/tmlibs/common"
tmpubsub "github.com/tendermint/tmlibs/pubsub"
)
Expand Down Expand Up @@ -326,7 +326,7 @@ func (w *WSEvents) eventListener() {
continue
}
result := new(ctypes.ResultEvent)
err := json.Unmarshal(resp.Result, result)
err := wire.UnmarshalJSON(resp.Result, result)
if err != nil {
w.Logger.Error("failed to unmarshal response", "err", err)
continue
Expand Down

0 comments on commit 03286a6

Please sign in to comment.