The gas cost for this code can be broken down as follows:
The gas cost of evaluating the conditional statement.
The gas cost of executing the revert function.
unnecessary gas cost
foundry testing
Using require instead of if statement then revert can optimize gas usage. When using require, gas is consumed only if the condition is not met,
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.