Skip to content

Commit

Permalink
pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Dec 3, 2024
1 parent b55f6a0 commit c8c3dbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions x/incentive/keeper/msg_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ func FuzzSetWithdrawAddr(f *testing.F) {
})
require.NoError(t, err)

rgauge := ik.GetRewardGauge(ctx, sType, sAddr)
require.NotNil(t, rgauge)
require.False(t, rgauge.IsFullyWithdrawn())

// invoke withdraw and assert consistency
resp, err := ms.WithdrawReward(ctx, &types.MsgWithdrawReward{
Type: sType.String(),
Expand Down
4 changes: 0 additions & 4 deletions x/incentive/keeper/query_delegator.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ func (k Keeper) DelegatorWithdrawAddress(goCtx context.Context, req *types.Query
return nil, status.Error(codes.InvalidArgument, "invalid request")
}

if req.DelegatorAddress == "" {
return nil, status.Error(codes.InvalidArgument, "empty delegator address")
}

ctx := sdk.UnwrapSDKContext(goCtx)
delegatorAddress, err := sdk.AccAddressFromBech32(req.DelegatorAddress)
if err != nil {
Expand Down

0 comments on commit c8c3dbf

Please sign in to comment.