The ERC1155Upgradeable contract is initialized with its unchained counterpart.
Example:
contract ItemsTicketer is StringUtils, IEscrowTicketer, MarketClientBase, ERC1155Upgradeable {
// Ticket ID => Ticket
mapping (uint256 => EscrowTicket) internal tickets;
// Consignment ID => Ticket Claimable Count (does not change after ticket burns)
mapping (uint256 => uint256) internal consignmentIdToTicketClaimableCount;
/// @dev Next ticket number
uint256 internal nextTicket;
/**
* @notice Initializer
*/
function initialize()
public {
__ERC1155_init_unchained(ESCROW_TICKET_URI);
}
Recommendation:
We advise the normal counterpart to be initialized instead. While it bears no effect as the dependencies of ERC1155Upgradeable have no logic in their initializers, its still more standardized to do it this way.
ITR-01C: Improper Initialization
Description:
The
ERC1155Upgradeable
contract is initialized with itsunchained
counterpart.Example:
Recommendation:
We advise the normal counterpart to be initialized instead. While it bears no effect as the dependencies of
ERC1155Upgradeable
have no logic in their initializers, its still more standardized to do it this way.