40,000 USDC
View results
Submission Details
Severity: gas

Consider using named returns

Summary

One of "best solidity practices" is to use named returns instead of normal return statements. This provides clearer code and better understanding.

Vulnerability Details

Here is an example of what could be done to improve the code base.

function computeEscrowAddress(...) public pure returns (address predictedAddress) {
predictedAddress = address(

Impact

Informational

Tools Used

Manual review

Recommendations

Use named returns.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.