Skip to content

Commit

Permalink
now init chain commands works!
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroms committed Dec 13, 2024
1 parent a6c4b28 commit 8c098e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/dualstaking/keeper/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ func (k Keeper) VerifyDelegatorBalance(ctx sdk.Context, delAddr sdk.AccAddress)
continue
}
v, err := k.stakingKeeper.GetValidator(ctx, valaddr)
if err != nil {
if err == nil {
sumValidatorDelegations = sumValidatorDelegations.Add(v.TokensFromSharesRoundUp(d.Shares).Ceil().TruncateInt())
}
}
Expand Down

0 comments on commit 8c098e4

Please sign in to comment.