update initializableERC721 && ERC1155
This commit is contained in:
@@ -46,20 +46,20 @@ contract NFTTokenFactory {
|
||||
}
|
||||
|
||||
function createERC721(
|
||||
string memory baseUrl
|
||||
string memory uri
|
||||
) external returns (address newERC721) {
|
||||
newERC721 = ICloneFactory(_CLONE_FACTORY_).clone(_ERC721_TEMPLATE_);
|
||||
InitializableERC721(newERC721).init(msg.sender, "DODONFT", "DODONFT", baseUrl);
|
||||
InitializableERC721(newERC721).init(msg.sender, "DODONFT", "DODONFT", uri);
|
||||
_USER_ERC721_REGISTRY_[msg.sender].push(newERC721);
|
||||
emit NewERC721(newERC721, msg.sender);
|
||||
}
|
||||
|
||||
function createERC1155(
|
||||
uint256 amount,
|
||||
string memory baseUrl
|
||||
string memory uri
|
||||
) external returns (address newERC1155) {
|
||||
newERC1155 = ICloneFactory(_CLONE_FACTORY_).clone(_ERC1155_TEMPLATE_);
|
||||
InitializableERC1155(newERC1155).init(msg.sender, amount, baseUrl);
|
||||
InitializableERC1155(newERC1155).init(msg.sender, amount, uri);
|
||||
_USER_ERC1155_REGISTRY_[msg.sender].push(newERC1155);
|
||||
emit NewERC1155(newERC1155, msg.sender);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user