proto register "cosmos.base.v1beta.Msg" interface (#7433)

This commit is contained in:
Amaury Martiny 2020-10-01 18:59:32 +02:00 committed by GitHub
parent 92ffed01bb
commit 6a92ed694e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ type InterfaceRegistry interface {
// as implementations of iface. // as implementations of iface.
// //
// Ex: // Ex:
// registry.RegisterInterface("cosmos.v1beta1.Msg", (*sdk.Msg)(nil)) // registry.RegisterInterface("cosmos.base.v1beta1.Msg", (*sdk.Msg)(nil))
RegisterInterface(protoName string, iface interface{}, impls ...proto.Message) RegisterInterface(protoName string, iface interface{}, impls ...proto.Message)
// RegisterImplementations registers impls as concrete implementations of // RegisterImplementations registers impls as concrete implementations of

View File

@ -13,5 +13,5 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
// RegisterInterfaces registers the sdk message type. // RegisterInterfaces registers the sdk message type.
func RegisterInterfaces(registry types.InterfaceRegistry) { func RegisterInterfaces(registry types.InterfaceRegistry) {
registry.RegisterInterface("cosmos.v1beta1.Msg", (*Msg)(nil)) registry.RegisterInterface("cosmos.base.v1beta1.Msg", (*Msg)(nil))
} }