public are accessible externally and internally. If a function is never called internally within the contract, it is recommended to mark it as external to optimize gas usage and improve clarity.**public, the Solidity compiler generates code that allows these functions to be called both externally and internally. This results in unnecessary overhead because public functions require additional mechanisms to handle both types of calls.public unnecessarily:Increased Gas Costs: The compiled bytecode for public functions is slightly larger, increasing deployment and execution costs.
Code Clarity: The intended use of the function is less explicit, which can make the contract harder to understand or audit.
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.