From b321f19d8c17ecb0a803301db563fa29faa62af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Mlinari=C4=87?= <35880252+nmlinaric@users.noreply.github.com> Date: Tue, 2 May 2023 15:28:38 +0200 Subject: [PATCH] fix: prevent tokenURI variable shadowing (#184) --- contracts/ERC721MinterBurnerPauser.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/ERC721MinterBurnerPauser.sol b/contracts/ERC721MinterBurnerPauser.sol index a5dffae8..1d884d37 100644 --- a/contracts/ERC721MinterBurnerPauser.sol +++ b/contracts/ERC721MinterBurnerPauser.sol @@ -24,13 +24,13 @@ contract ERC721MinterBurnerPauser is Context, AccessControl, ERC721Burnable, ERC * Token URIs will be autogenerated based on `baseURI` and their token IDs. * See {ERC721-tokenURI}. */ - constructor(string memory name, string memory symbol, string memory baseURI) ERC721(name, symbol) { + constructor(string memory name, string memory symbol, string memory tokenBaseURI) ERC721(name, symbol) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(PAUSER_ROLE, _msgSender()); - _setBaseURI(baseURI); + _setBaseURI(tokenBaseURI); } /**