Skip to content

Commit

Permalink
make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nghuyenthevinh2000 committed Mar 7, 2023
1 parent 36fecde commit 6e803fd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 58 deletions.
56 changes: 0 additions & 56 deletions store/cachekv/memiterator.go

This file was deleted.

2 changes: 1 addition & 1 deletion x/staking/keeper/delegation.go
Expand Up @@ -664,7 +664,7 @@ func (k Keeper) Delegate(
validatorLastPower := sdk.TokensToConsensusPower(validator.Tokens, k.PowerReduction(ctx))

// Get the new power of the validator if delegated the bond amount
validatorNewPower := int64(validatorLastPower) + sdk.TokensToConsensusPower(bondAmt, k.PowerReduction(ctx))
validatorNewPower := validatorLastPower + sdk.TokensToConsensusPower(bondAmt, k.PowerReduction(ctx))

// Compute what the Total Consensus Power would be if this Delegation goes through
newTotalPower := lastPower.Int64() + sdk.TokensToConsensusPower(bondAmt, k.PowerReduction(ctx))
Expand Down
2 changes: 1 addition & 1 deletion x/staking/keeper/msg_server.go
Expand Up @@ -255,7 +255,7 @@ func (k msgServer) Delegate(goCtx context.Context, msg *types.MsgDelegate) (*typ
ctx.Logger().Info(fmt.Sprintf("lastPower of Validator is %d", validatorLastPower))

// Compute what the Validator's new power would be if this Delegation goes through
validatorNewPower := int64(validatorLastPower) + sdk.TokensToConsensusPower(msg.Amount.Amount, k.Keeper.PowerReduction(ctx))
validatorNewPower := validatorLastPower + sdk.TokensToConsensusPower(msg.Amount.Amount, k.Keeper.PowerReduction(ctx))

// Compute what the Total Consensus Power would be if this Delegation goes through
newTotalPower := lastPower.Int64() + sdk.TokensToConsensusPower(msg.Amount.Amount, k.Keeper.PowerReduction(ctx))
Expand Down

0 comments on commit 6e803fd

Please sign in to comment.