add initializableERC721

This commit is contained in:
owen05
2021-04-05 12:00:40 +08:00
parent fe9db5c578
commit 7c2de0af81
8 changed files with 583 additions and 16 deletions

View File

@@ -45,7 +45,7 @@ contract ERC721Facotry {
string memory baseUrl
) external returns (address newERC721) {
newERC721 = ICloneFactory(_CLONE_FACTORY_).clone(_ERC721_TEMPLATE_);
InitializableERC721(newERC721).init(msg.sender, name, symbol, baseUrl);
InitializableERC721(newERC721).init(name, symbol, baseUrl);
_USER_REGISTRY_[msg.sender].push(newERC721);
emit NewERC721(newERC721, msg.sender);
}