mintEgg()
function in the EggstravaganzaNFT
contract is vulnerable due to an unused return value, which unnecessarily increases gas fees. To optimize, the return value should either be used or explicitly discardedmintEgg()
function increases gas fees.Without Return Value: Gas fees consumed: 80,913
With Return Value: Gas fees consumed: 80,921
1) VS Code
2) Aderyn
Strategy to save gas and minimize transaction costs
Returns a boolean value that isn't utilized by its caller
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.