Adding variable name and symbol to the ERC721 Template
This commit is contained in:
parent
9ec3761126
commit
57eb2b1a78
|
@ -11,7 +11,11 @@ contract DCO2s is ERC721, ERC721Enumerable, ERC721URIStorage, AccessControl {
|
||||||
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
|
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
|
||||||
uint256 private _nextTokenId;
|
uint256 private _nextTokenId;
|
||||||
|
|
||||||
constructor(address defaultAdmin, address minter) ERC721("DCO2s", "DCO2") {
|
constructor(
|
||||||
|
address defaultAdmin,
|
||||||
|
address minter,
|
||||||
|
string memory name, string memory symbol)
|
||||||
|
ERC721(name, symbol) {
|
||||||
_grantRole(DEFAULT_ADMIN_ROLE, defaultAdmin);
|
_grantRole(DEFAULT_ADMIN_ROLE, defaultAdmin);
|
||||||
_grantRole(MINTER_ROLE, minter);
|
_grantRole(MINTER_ROLE, minter);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue