Merge PR #3836: Fix WithdrawValidatorCommission
This commit is contained in:
committed by
Christopher Goes
parent
db421fc0a6
commit
b316c477c1
+3
-1
@@ -179,7 +179,9 @@ func (coins DecCoins) TruncateDecimal() (Coins, DecCoins) {
|
||||
for i, coin := range coins {
|
||||
truncated, change := coin.TruncateDecimal()
|
||||
out[i] = truncated
|
||||
changeSum = changeSum.Add(DecCoins{change})
|
||||
if !change.IsZero() {
|
||||
changeSum = changeSum.Add(DecCoins{change})
|
||||
}
|
||||
}
|
||||
|
||||
return out, changeSum
|
||||
|
||||
Reference in New Issue
Block a user