Skip to content

Commit

Permalink
e2e: attempted fix of client state query
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Mar 13, 2024
1 parent 537dc24 commit 31af2a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/testsuite/query/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ func ClientState(ctx context.Context, chain ibc.Chain, clientID string) (ibcexpo

clientStateAny := clientStateResp.ClientState

clientState, err := clienttypes.UnpackClientState(clientStateAny)
cfg := chain.Config().EncodingConfig
var clientState ibcexported.ClientState
err = cfg.InterfaceRegistry.UnpackAny(clientStateAny, &clientState)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 31af2a1

Please sign in to comment.