Skip to content

Commit

Permalink
Problem: Missing MsgTransferTokens and MsgConvertVouchers interfaces …
Browse files Browse the repository at this point in the history
…registration (#166)

* Problem: Missing MsgTransferTokens and MsgConvertVouchers interfaces registration

Solution: (Fix #165) Add the codec registration

* Update x/cronos/types/codec.go

Co-authored-by: yihuang <[email protected]>

Co-authored-by: yihuang <[email protected]>
  • Loading branch information
calvinaco and yihuang authored Oct 12, 2021
1 parent 237c862 commit aa30b60
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x/cronos/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package types
import (
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
// this line is used by starport scaffolding # 1
Expand All @@ -20,6 +21,12 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) {
&TokenMappingChangeProposal{},
)

registry.RegisterImplementations((*sdk.Msg)(nil),
&MsgConvertVouchers{},
&MsgTransferTokens{},
&MsgUpdateTokenMapping{},
)

msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}

Expand Down

0 comments on commit aa30b60

Please sign in to comment.