Omniscia LimeChain Audit

WrappedERC721 Static Analysis Findings

WrappedERC721 Static Analysis Findings

WER-01S: Variable Shadowing

TypeSeverityLocation
Language SpecificInformationalWrappedERC721.sol:L11

Description:

The name and symbol variables shadow the declarations of the same name within the ERC721 implementation.

Example:

contracts/WrappedERC721.sol
11constructor(string memory name, string memory symbol)
12 ERC721(name, symbol)
13{}

Recommendation:

We advise them to be suffixed with an underscore (_) to prevent the naming collision.

Alleviation:

The variables were instead prefixed with an underscore thereby achieving the same result.