Closed c4-submissions closed 10 months ago
https://github.com/code-423n4/2023-09-delegate/blob/main/src/PrincipalToken.sol#L33
According to openzepplin ERC721, the use of _mint is discouraged, use _safeMint whenever possible. https://docs.openzeppelin.com/contracts/3.x/api/token/erc721#ERC721-_mint-address-uint256-
Instances (1):
https://github.com/code-423n4/2023-09-delegate/blob/main/src/PrincipalToken.sol#L33C3-L37C6
File: example/PrincipalToken.sol 35: _mint(to, id);
Other
GalloDaSballo changed the severity to QA (Quality Assurance)
Lines of code
https://github.com/code-423n4/2023-09-delegate/blob/main/src/PrincipalToken.sol#L33
Vulnerability details
According to openzepplin ERC721, the use of _mint is discouraged, use _safeMint whenever possible. https://docs.openzeppelin.com/contracts/3.x/api/token/erc721#ERC721-_mint-address-uint256-
Instances (1):
https://github.com/code-423n4/2023-09-delegate/blob/main/src/PrincipalToken.sol#L33C3-L37C6
Assessed type
Other