Skip to content

Commit

Permalink
fix: remove route,type&getSignBytes in msgs.go
Browse files Browse the repository at this point in the history
Signed-off-by: 170210 <[email protected]>
  • Loading branch information
170210 committed Apr 15, 2024
1 parent f43563d commit 0b2cab7
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions x/fswap/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 0b2cab7

Please sign in to comment.