Skip to content

Commit

Permalink
fix: remove redundant type methods
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhphuctadang authored and kakysha committed Apr 24, 2024
1 parent a2f3d7a commit 0180f22
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/apps/29-fee/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func (msg MsgRegisterPayee) GetSigners() []sdk.AccAddress {
return []sdk.AccAddress{signer}
}

func (msg MsgRegisterPayee) Type() string {
return "msgRegisterPayee"
}

// NewMsgRegisterCounterpartyPayee creates a new instance of MsgRegisterCounterpartyPayee
func NewMsgRegisterCounterpartyPayee(portID, channelID, relayerAddr, counterpartyPayeeAddr string) *MsgRegisterCounterpartyPayee {
return &MsgRegisterCounterpartyPayee{
Expand Down Expand Up @@ -115,6 +119,10 @@ func (msg MsgRegisterCounterpartyPayee) GetSigners() []sdk.AccAddress {
return []sdk.AccAddress{signer}
}

func (msg MsgRegisterCounterpartyPayee) Type() string {
return "msgRegisterCounterpartyPayee"
}

// NewMsgPayPacketFee creates a new instance of MsgPayPacketFee
func NewMsgPayPacketFee(fee Fee, sourcePortID, sourceChannelID, signer string, relayers []string) *MsgPayPacketFee {
return &MsgPayPacketFee{
Expand Down
2 changes: 2 additions & 0 deletions modules/apps/transfer/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"strings"

errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"

sdk "github.com/cosmos/cosmos-sdk/types"

Expand Down

0 comments on commit 0180f22

Please sign in to comment.