fix: amount counting in clearUnresolvedClaims

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
Lorenz Herzberger 2024-11-13 10:20:37 +01:00
parent 982ad146d8
commit 679080d462
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A

View File

@ -60,11 +60,11 @@ func (k msgServer) clearUnresolvedClaims(ctx sdk.Context, start int64) (err erro
currentAmounts := make(map[string]uint64)
for address, amount := range claims.challenger {
currentAmounts[address] = amount
currentAmounts[address] += amount
}
for address, amount := range claims.challengee {
currentAmounts[address] = amount
currentAmounts[address] += amount
}
totalAmounts := make(map[string]uint64)