Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guilherme-brandao committed Dec 18, 2024
1 parent 664e123 commit 6a6a59f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions x/emissions/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1452,12 +1452,15 @@ func (k *Keeper) AppendForecast(
if err != nil {
return errorsmod.Wrap(err, "error getting topic initial ema score")
}
return k.SetForecasterScoreEma(ctx, topic.Id, forecast.Forecaster, types.Score{
err = k.SetForecasterScoreEma(ctx, topic.Id, forecast.Forecaster, types.Score{
TopicId: topic.Id,
Address: forecast.Forecaster,
BlockHeight: nonceBlockHeight,
Score: initialEmaScore,
})
if err != nil {
return errorsmod.Wrap(err, "error setting forecaster score ema")
}
}

lowestEmaScore, _, err := k.GetLowestForecasterScoreEma(ctx, topic.Id)
Expand Down Expand Up @@ -1662,12 +1665,15 @@ func (k *Keeper) AppendReputerLoss(
if err != nil {
return errorsmod.Wrap(err, "error getting topic initial ema score")
}
return k.SetReputerScoreEma(ctx, topic.Id, reputerLoss.ValueBundle.Reputer, types.Score{
err = k.SetReputerScoreEma(ctx, topic.Id, reputerLoss.ValueBundle.Reputer, types.Score{
TopicId: topic.Id,
Address: reputerLoss.ValueBundle.Reputer,
BlockHeight: nonceBlockHeight,
Score: initialEmaScore,
})
if err != nil {
return errorsmod.Wrap(err, "error setting initial reputer score ema")
}
}

lowestEmaScore, _, err := k.GetLowestReputerScoreEma(ctx, topic.Id)
Expand Down

0 comments on commit 6a6a59f

Please sign in to comment.