2021-04-04 19:02:49 +08:00
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
Copyright 2020 DODO ZOO.
|
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
pragma solidity 0.6.9;
|
|
|
|
|
|
2021-04-15 12:19:51 +08:00
|
|
|
import {ERC721URIStorage} from "./ERC721URIStorage.sol";
|
2021-04-04 19:02:49 +08:00
|
|
|
|
2021-04-15 12:19:51 +08:00
|
|
|
contract InitializableERC721 is ERC721URIStorage {
|
2021-04-04 19:02:49 +08:00
|
|
|
function init(
|
2021-04-09 00:27:53 +08:00
|
|
|
address creator,
|
2021-04-04 19:02:49 +08:00
|
|
|
string memory name,
|
|
|
|
|
string memory symbol,
|
2021-04-15 12:19:51 +08:00
|
|
|
string memory uri
|
2021-04-04 19:02:49 +08:00
|
|
|
) public {
|
2021-04-05 12:00:40 +08:00
|
|
|
_name = name;
|
|
|
|
|
_symbol = symbol;
|
2021-04-09 00:27:53 +08:00
|
|
|
_mint(creator, 0);
|
2021-04-15 12:19:51 +08:00
|
|
|
_setTokenURI(0, uri);
|
2021-04-05 12:00:40 +08:00
|
|
|
}
|
2021-04-14 13:51:21 +08:00
|
|
|
}
|