Skip to content

Commit

Permalink
Merge PR: add msg transfer (#2907)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsFunny authored Jan 6, 2023
1 parent df1e21f commit 45641b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ var (
)

const (
bankMsgSend = "/cosmos.bank.v1beta1.MsgSend"
bankMsgSend = "/cosmos.bank.v1beta1.MsgSend"
ibcMsgTransfer = "/ibc.applications.transfer.v1.MsgTransfer"
)

var (
DefaultAllowMessages []string = []string{
bankMsgSend,
bankMsgSend, ibcMsgTransfer,
}
)

Expand Down
2 changes: 1 addition & 1 deletion libs/ibc-go/modules/apps/transfer/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (am AppModule) LegacyQuerierHandler(codec2 *codec.Codec) sdk.Querier {

// RegisterServices registers module services.
func (am AppModule) RegisterServices(cfg module.Configurator) {
//types.RegisterMsgServer(cfg.MsgServer(), am.keeper)
types.RegisterMsgServer(cfg.MsgServer(), am.keeper)
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)
}

Expand Down
4 changes: 4 additions & 0 deletions libs/ibc-go/modules/apps/transfer/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
(*txmsg.Msg)(nil),
&MsgTransfer{},
)
registry.RegisterImplementations(
(*types.Msg)(nil),
&MsgTransfer{},
)

registry.RegisterImplementations((*types.MsgProtoAdapter)(nil), &MsgTransfer{})
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
Expand Down

0 comments on commit 45641b8

Please sign in to comment.