From 57eb2b1a78c5ffd2f5698efd818040fde589a94a Mon Sep 17 00:00:00 2001 From: itzelot01 Date: Tue, 21 Nov 2023 22:44:16 +0000 Subject: [PATCH] Adding variable name and symbol to the ERC721 Template --- src/DCO2s.sol | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/DCO2s.sol b/src/DCO2s.sol index d564406..2ba21d9 100644 --- a/src/DCO2s.sol +++ b/src/DCO2s.sol @@ -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); }