Skip to content

Commit

Permalink
29-fee amino
Browse files Browse the repository at this point in the history
  • Loading branch information
pysel committed Jun 20, 2023
1 parent c4d51de commit 323d84d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions modules/apps/29-fee/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ var (
// The actual codec used for serialization should be provided to x/ibc transfer and
// defined at the application level.
ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())

// AminoCdc is a amino codec created to support amino json compatible msgs.
AminoCdc = codec.NewAminoCodec(amino)
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions modules/apps/29-fee/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (msg MsgPayPacketFee) Route() string {

// GetSignBytes implements sdk.Msg.
func (msg MsgPayPacketFee) GetSignBytes() []byte {
return mustSortJSON(AminoCdc.MustMarshalJSON(&msg))
return mustSortJSON(amino.MustMarshalJSON(&msg))
}

// NewMsgPayPacketAsync creates a new instance of MsgPayPacketFee
Expand Down Expand Up @@ -189,5 +189,5 @@ func (msg MsgPayPacketFeeAsync) Route() string {

// GetSignBytes implements sdk.Msg.
func (msg MsgPayPacketFeeAsync) GetSignBytes() []byte {
return mustSortJSON(AminoCdc.MustMarshalJSON(&msg))
return mustSortJSON(amino.MustMarshalJSON(&msg))
}

0 comments on commit 323d84d

Please sign in to comment.