Prevents duplicate addresses to be sent in the same reward request

This commit is contained in:
Ben 2024-04-03 09:21:10 +02:00
parent 29344451d6
commit b805c5f004
No known key found for this signature in database
GPG Key ID: 541B9D8C9F1426A1
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ namespace TestNetRewarder
private EthAddress[] PerformCheck(RewardConfig reward, ChainState chainState)
{
var check = GetCheck(reward.CheckConfig);
return check.Check(chainState);
return check.Check(chainState).Distinct().ToArray();
}
private ICheck GetCheck(CheckConfig config)