Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBolten committed Jan 28, 2024
1 parent 9d5b199 commit b1f852e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x/cork/types/v1/msgs.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package v1

import (
errorsmod "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -41,7 +42,7 @@ func (m *MsgSubmitCorkRequest) Type() string { return TypeMsgSubmitCorkRequest }
// ValidateBasic implements sdk.Msg
func (m *MsgSubmitCorkRequest) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(m.Signer); err != nil {
return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, err.Error())
return errorsmod.Wrap(sdkerrors.ErrInvalidAddress, err.Error())
}

return nil
Expand Down Expand Up @@ -91,7 +92,7 @@ func (m *MsgScheduleCorkRequest) Type() string { return TypeMsgScheduleCorkReque
// ValidateBasic implements sdk.Msg
func (m *MsgScheduleCorkRequest) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(m.Signer); err != nil {
return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, err.Error())
return errorsmod.Wrap(sdkerrors.ErrInvalidAddress, err.Error())
}

return m.Cork.ValidateBasic()
Expand Down

0 comments on commit b1f852e

Please sign in to comment.