In KittyConnect::constructor
, the function reads from storage in every iteration of the for-loop. Reading from storage is more expensive than reading from memory.
Leads to spending more gas than necessary.
Manual Review
Consider storing the length of the array in a local variable and using it in the for-loop. This will reduce the gas cost of the function.
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.