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 albertchon committed Jun 24, 2023
1 parent d98c060 commit 78fcd5d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion modules/apps/29-fee/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
legacytx "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"

channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types"
host "github.com/cosmos/ibc-go/v7/modules/core/24-host"
Expand Down Expand Up @@ -73,6 +73,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: 1 addition & 1 deletion modules/apps/transfer/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
legacytx "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"

clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
host "github.com/cosmos/ibc-go/v7/modules/core/24-host"
Expand Down

0 comments on commit 78fcd5d

Please sign in to comment.