Skip to content

Commit

Permalink
Use old ClientState type from ibc-go migration package
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Sep 10, 2024
1 parent 1fda95f commit 730920f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions kava/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ import (
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/cosmos/ibc-go/v7/modules/core/exported"
kava "github.com/kava-labs/kava/app"
"github.com/kava-labs/kava/app/params"

migrations_v7 "github.com/cosmos/ibc-go/v7/modules/core/02-client/migrations/v7"
)

var noBlockResultsForHeight = regexp.MustCompile(`could not find results for height #(\d+)`)
Expand All @@ -54,13 +57,13 @@ func NewClient(rpc RPCClient, balanceServiceFactory BalanceServiceFactory) (*Cli
encodingConfig := kava.MakeEncodingConfig()
encodingConfig.InterfaceRegistry.RegisterInterface(
"ibc.lightclients.solomachine.v2.ClientState",
(*ClientStateI)(nil),
&ClientState{},
(*exported.ClientState)(nil),
&migrations_v7.ClientState{},
)
encodingConfig.InterfaceRegistry.RegisterInterface(
"ibc.lightclients.solomachine.v2.ConsensusState",
(*ConsensusStateI)(nil),
&ConsensusState{},
(*exported.ConsensusState)(nil),
&migrations_v7.ConsensusState{},
)

return &Client{
Expand Down

0 comments on commit 730920f

Please sign in to comment.