setCountry::BriVault function is using memory instead of calldata which will save gas feeThe function setCountry have string[48] memory countries which is consuming extra gas fee.
The function is not modifing the countries string array and is only reading from the array .
Hence, it's a waste of gas to use memory where the function only reading and is also not used anywhere in the contract, hence should also be made external with this .
Likelihood: Low
Impact: Low/Gas
Change memory->calldata and also change the visbility specifier to external.
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.