The EggstravaganzaNFT.mintEgg(address,uint256)
function returns an unneeded value, using extra gas.
The following code returns a boolean value:
This value is only used in a test. The function can never return false and is not needed to test that the function actually works.
Example of test with return value:
The same test without the return value
The return value wastes 198
gas per minted egg
Manual review
Remove return value from mintEgg
Adjust test to remove assertTrue(success);
Strategy to save gas and minimize transaction costs
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.