From 0b2cab7f012eb39c16ff5f84f6bbc4dce4d72f50 Mon Sep 17 00:00:00 2001 From: 170210 Date: Mon, 15 Apr 2024 18:49:30 +0900 Subject: [PATCH] fix: remove route,type&getSignBytes in msgs.go Signed-off-by: 170210 --- x/fswap/types/msgs.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/x/fswap/types/msgs.go b/x/fswap/types/msgs.go index dabae8d74c..4f4ad81cb5 100644 --- a/x/fswap/types/msgs.go +++ b/x/fswap/types/msgs.go @@ -14,12 +14,6 @@ func NewMsgSwapRequest(fromAddr, toAddr sdk.AccAddress, amount sdk.Coin) *MsgSwa return &MsgSwapRequest{FromAddress: fromAddr.String(), Amount: amount} } -// Route Implements Msg. -func (msg MsgSwapRequest) Route() string { return RouterKey } - -// Type Implements Msg. -func (msg MsgSwapRequest) Type() string { return sdk.MsgTypeURL(&msg) } - // ValidateBasic Implements Msg. func (msg MsgSwapRequest) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.FromAddress) @@ -38,11 +32,6 @@ func (msg MsgSwapRequest) ValidateBasic() error { return nil } -// GetSignBytes Implements Msg. -func (msg MsgSwapRequest) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) -} - // GetSigners Implements Msg. func (msg MsgSwapRequest) GetSigners() []sdk.AccAddress { from, err := sdk.AccAddressFromBech32(msg.FromAddress) @@ -61,12 +50,6 @@ func NewMsgSwapAllRequest(fromAddr, toAddr sdk.AccAddress) *MsgSwapAllRequest { return &MsgSwapAllRequest{FromAddress: fromAddr.String()} } -// Route Implements Msg. -func (msg MsgSwapAllRequest) Route() string { return RouterKey } - -// Type Implements Msg. -func (msg MsgSwapAllRequest) Type() string { return sdk.MsgTypeURL(&msg) } - // ValidateBasic Implements Msg. func (msg MsgSwapAllRequest) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.FromAddress) @@ -77,11 +60,6 @@ func (msg MsgSwapAllRequest) ValidateBasic() error { return nil } -// GetSignBytes Implements Msg. -func (msg MsgSwapAllRequest) GetSignBytes() []byte { - return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg)) -} - // GetSigners Implements Msg. func (msg MsgSwapAllRequest) GetSigners() []sdk.AccAddress { from, err := sdk.AccAddressFromBech32(msg.FromAddress)