Skip to content

Commit

Permalink
lint once more
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown unknown committed Aug 1, 2023
1 parent dd1124e commit 1475771
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x/subaccount/keeper/msg_server_house_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func TestMsgServer(t *testing.T) {
require.Equal(t, ownerBalance.AmountOf(k.GetParams(ctx).LockedBalanceDenom), sdk.ZeroInt())
})

// TODO: not partecipated in bet fulfillment.
// TODO: not participated in bet fulfillment.

t.Run("withdrawal", func(t *testing.T) {
ctx, _ := ctx.CacheContext()
Expand Down
1 change: 1 addition & 0 deletions x/subaccount/keeper/withdraw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func TestMsgServer_WithdrawUnlockedBalances(t *testing.T) {

t.Log("fund sender account")
err := simapp.FundAccount(app.BankKeeper, ctx, sender, sdk.NewCoins(sdk.NewInt64Coin("usge", 1000)))
require.NoError(t, err)

t.Log("Create sub account")
_, err = msgServer.CreateSubAccount(sdk.WrapSDKContext(ctx), &types.MsgCreateSubAccount{
Expand Down
7 changes: 3 additions & 4 deletions x/subaccount/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/errors"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)

var (
Expand Down Expand Up @@ -90,7 +89,7 @@ func (msg *MsgWithdrawUnlockedBalances) GetSigners() []sdk.AccAddress {

func (m *MsgWager) ValidateBasic() error {
if m.Msg == nil {
return sdkerrors.ErrInvalidRequest.Wrap("msg is nil")
return errors.ErrInvalidRequest.Wrap("msg is nil")
}
return m.Msg.ValidateBasic()
}
Expand All @@ -105,7 +104,7 @@ func (m *MsgHouseDeposit) GetSigners() []sdk.AccAddress {

func (m *MsgHouseDeposit) ValidateBasic() error {
if m.Msg == nil {
return sdkerrors.ErrInvalidRequest.Wrap("msg is nil")
return errors.ErrInvalidRequest.Wrap("msg is nil")
}
return m.Msg.ValidateBasic()
}
Expand All @@ -116,7 +115,7 @@ func (m *MsgHouseWithdraw) GetSigners() []sdk.AccAddress {

func (m *MsgHouseWithdraw) ValidateBasic() error {
if m.Msg == nil {
return sdkerrors.ErrInvalidRequest.Wrap("msg is nil")
return errors.ErrInvalidRequest.Wrap("msg is nil")
}
return m.Msg.ValidateBasic()
}

0 comments on commit 1475771

Please sign in to comment.