There is no check for array length in lastBalanceOfBatch.
function lastBalanceOfBatch(
address[] memory accounts,
uint256[] memory ids
) external view returns (Balance[] memory balances) {
balances = new Balance;
for (uint256 i; i < accounts.length; ++i) {
balances[i] = lastBalanceOf(accounts[i], ids[i]);
}
}
There is no check on the array length in lastBalanceOfBatch.
there should be a equal length on lastBalanceOfBatch.we will not get the the output balances as required.
require(accounts.length()==ids.length());
Invalid as per docs https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.