Skip to content

Commit

Permalink
cherry pick: 726fea9
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Dec 18, 2023
1 parent bae333c commit ea049d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/authz/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
legacy.RegisterAminoMsg(cdc, &MsgGrant{}, "cosmos-sdk/MsgGrant")
legacy.RegisterAminoMsg(cdc, &MsgRevoke{}, "cosmos-sdk/MsgRevoke")
legacy.RegisterAminoMsg(cdc, &MsgExec{}, "cosmos-sdk/MsgExec")
legacy.RegisterAminoMsg(cdc, &MsgExecCompat{}, "cosmos-sdk/MsgExecCompat")

cdc.RegisterInterface((*Authorization)(nil), nil)
cdc.RegisterConcrete(&GenericAuthorization{}, "cosmos-sdk/GenericAuthorization", nil)
Expand All @@ -25,6 +26,7 @@ func RegisterInterfaces(registry types.InterfaceRegistry) {
&MsgGrant{},
&MsgRevoke{},
&MsgExec{},
&MsgExecCompat{},
)

registry.RegisterInterface(
Expand Down
1 change: 1 addition & 0 deletions x/authz/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var (
_ sdk.Msg = &MsgGrant{}
_ sdk.Msg = &MsgRevoke{}
_ sdk.Msg = &MsgExec{}
_ sdk.Msg = &MsgExecCompat{}

_ cdctypes.UnpackInterfacesMessage = &MsgGrant{}
_ cdctypes.UnpackInterfacesMessage = &MsgExec{}
Expand Down

0 comments on commit ea049d7

Please sign in to comment.