Omniscia Hot Cross Audit

CrossMint Code Style Findings

CrossMint Code Style Findings

CMT-01C: Redundant Visibility Specifiers

TypeSeverityLocation
Gas OptimizationInformationalCrossMint.sol:L19, L20

Description:

The CROSS_MINT_721 and CROSS_MINT_1155 variables are contract-level constants declared as public.

Example:

contracts/CrossMint.sol
19string public constant CROSS_MINT_721 = "CrossMint721";
20string public constant CROSS_MINT_1155 = "CrossMint1155";

Recommendation:

We advise them to be set as internal or private to optimize the contract's bytecode.

Alleviation:

The redundant visibility specifiers were instead replaced by private ones alleviating this exhibit.