Skip to content

Commit

Permalink
address nit
Browse files Browse the repository at this point in the history
  • Loading branch information
likhita-809 committed Sep 1, 2023
1 parent c6f3c28 commit 6061988
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x/staking/keeper/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ func (k Keeper) GetLastValidatorPower(ctx context.Context, operator sdk.ValAddre

// SetLastValidatorPower sets the last validator power.
func (k Keeper) SetLastValidatorPower(ctx context.Context, operator sdk.ValAddress, power int64) error {
var intV gogotypes.Int64Value
intV.Value = power
return k.LastValidatorPower.Set(ctx, operator, intV)
return k.LastValidatorPower.Set(ctx, operator, gogotypes.Int64Value{Value: power})
}

// DeleteLastValidatorPower deletes the last validator power.
Expand Down

0 comments on commit 6061988

Please sign in to comment.