mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
fix: amount counting in clearUnresolvedClaims
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
982ad146d8
commit
679080d462
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user