.length inside of loop of expensive, wasting gas.In the function setCountry::BriVault , use of countries.length is expensive and waste unnecessary gas.
Likelihood: Low
Impact: Low/Gas
Store the value of countries.length outside the loop in a local variable countryLength .
Gas optimizations are invalid according to the CodeHawks documentation.
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.