The ERC1155Upgradeable contract is initialized with its unchained counterpart.
Example:
contract SeenHausNFT is ISeenHausNFT, MarketClientBase, ERC1155Upgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/// @dev token id => Token struct
mapping (uint256 => Token) internal tokens;
// Next token number
uint256 internal nextToken;
/**
* @notice Initializer
*/
function initialize(address _initOwner)
public {
__ERC1155_init_unchained("");
_transferOwnership(_initOwner);
}
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.
SHN-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.