Skip to content

Commit

Permalink
RegisterInterfaces for provider
Browse files Browse the repository at this point in the history
  • Loading branch information
likesToEatFish committed Jul 18, 2024
1 parent 47ed2f1 commit 5e98d86
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion x/provider/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ import (

// RegisterLegacyAminoCodec register types with legacy amino
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {

cdc.RegisterConcrete(&MsgDelegate{}, "provider/MsgDelegate", nil)
cdc.RegisterConcrete(&MsgUndelegate{}, "provider/MsgUndelegate", nil)
cdc.RegisterConcrete(&MsgSetConsumerCommissionRate{}, "provider/MsgSetConsumerCommissionRate", nil)
}

// RegisterInterfaces register types with interface registry
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
registry.RegisterImplementations(
(*sdk.Msg)(nil),
&MsgDelegate{},
&MsgUndelegate{},
&MsgSetConsumerCommissionRate{},
)
}

Expand Down

0 comments on commit 5e98d86

Please sign in to comment.