Skip to content

Commit

Permalink
fix(sequencer): register PunishSequencerProposal type (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
zale144 authored Dec 17, 2024
1 parent a9d5d6b commit d0166dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x/sequencer/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
authzcodec "github.com/cosmos/cosmos-sdk/x/authz/codec"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
)

func RegisterCodec(cdc *codec.LegacyAmino) {
Expand All @@ -18,6 +19,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) {
cdc.RegisterConcrete(&MsgKickProposer{}, "sequencer/KickProposer", nil)
cdc.RegisterConcrete(&MsgUpdateOptInStatus{}, "sequencer/UpdateOtpInStatus", nil)
cdc.RegisterConcrete(&MsgUpdateParams{}, "sequencer/UpdateParams", nil)
cdc.RegisterConcrete(&PunishSequencerProposal{}, "sequencer/PunishSequencerProposal", nil)
}

func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
Expand All @@ -33,6 +35,8 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
&MsgUpdateParams{},
)

registry.RegisterImplementations((*govtypes.Content)(nil), &PunishSequencerProposal{})

msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}

Expand Down

0 comments on commit d0166dd

Please sign in to comment.