areClaimedNotes

This commit is contained in:
Alexey 2020-11-26 21:41:54 +01:00
parent 3c8684d657
commit c57b5a3b1a

View File

@ -12,4 +12,11 @@ contract MinerAggregator {
_rates[i] = miner.rates(instances[i]); _rates[i] = miner.rates(instances[i]);
} }
} }
function areClaimedNotes(Miner miner, bytes32[] calldata _rewardNullifiers) external view returns (bool[] memory result) {
result = new bool[](_rewardNullifiers.length);
for (uint256 i = 0; i < _rewardNullifiers.length; i++) {
result[i] = miner.rewardNullifiers(_rewardNullifiers[i]);
}
}
} }