Closed JayWelsh closed 2 years ago
This may require further reflection, it's unclear to me if this change should be made, and what the benefit of this change would be.
Reluctant to fork the OpenZeppelin token contract, tentatively appealing unless we expect a significant gas saving from this change (as it seems that reducing gas consumption would be the only impact of this change, is this correct?).
The MarketClerkFacet.sol
makes use of @openzeppelin/contracts-upgradeable/token/ERC1155/utils/ERC1155HolderUpgradeable.sol
& @openzeppelin/contracts-upgradeable/token/ERC721/utils/ERC721HolderUpgradeable.sol
, therefore these hooks are called
SHN-03C: Potentially Improper NFT Handling
Description:
The
mint
function creates an NFT directly to themarketController
which represents a contract and thus has a safe-call hook invoked. However, this hook is inexistent in the codebase.Example:
Recommendation:
We advise this trait of the system to be evaluated and potentially an unsafe mint operation to be performed instead if no logic is meant to be executed during an NFT's creation.