Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-register proto ics read state #176

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions cmd/onomyd/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import (
"github.com/tendermint/tendermint/libs/cli"

"github.com/onomyprotocol/onomy/app"

cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
ibcprovidertypes "github.com/cosmos/interchain-security/x/ccv/provider/types"
)

// NewRootCmd initiates the cli for onomy chain.
Expand All @@ -24,6 +28,8 @@ func NewRootCmd() (*cobra.Command, cosmoscmd.EncodingConfig) {
app.ModuleBasics,
app.New,
)
// pull request #171 refactor: Remove ics. So we need re-register proto can read state
RegisterInterfacesICSProvider(encodingConfig.InterfaceRegistry)

rootCmd.AddCommand(
server.RosettaCommand(encodingConfig.InterfaceRegistry, encodingConfig.Marshaler),
Expand Down Expand Up @@ -52,3 +58,11 @@ func WrapBridgeCommands(defaultNodeHome, rootCmd string, cmds []*cobra.Command)

return cmd
}

// // pull request #171 refactor: Remove ics. So we need re-register proto can read state
func RegisterInterfacesICSProvider(registry cdctypes.InterfaceRegistry) {
registry.RegisterImplementations(
(*govtypes.Content)(nil),
&ibcprovidertypes.ConsumerAdditionProposal{},
)
}
Loading