The CredToken::mint
function is only called by Street
contract. Therefore, it can be external
instead of public
.
The CredToken::mint
function is designed to be called exclusively by the _streetsContract
, as enforced by the onlyStreetContract modifier
. The function is currently marked as public
, which means it can be called internally by other functions within the contract or externally by the designated Streets contract.
The CredToken::mint
function should be marked as external
instead of public
. Since the function is intended to be called only by the _streetsContract
, there is no need for it to be callable internally. The external visibility is more gas-efficient for functions that are only meant to be called from outside the contract.
Manual Review
Change the visibility of the CredToken::mint
function from public to external:
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.