Adding variable name and symbol to the ERC721 Template

This commit is contained in:
itzelot01 2023-11-21 22:44:16 +00:00
parent 9ec3761126
commit 57eb2b1a78
1 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,11 @@ contract DCO2s is ERC721, ERC721Enumerable, ERC721URIStorage, AccessControl {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
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(MINTER_ROLE, minter);
}