I’m not sure why the name and symbol are not used in the ERC721PresetMinterPauserAutoIdUpgradeable 4.1.0 Lib.
This is the warning I’m getting;
Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
→ @openzeppelin/contracts-upgradeable/token/ERC721/presets/ERC721PresetMinterPauserAutoIdUpgradeable.sol:62:62:
|
62 | … tMinterPauserAutoId_init_unchained(string memory name, string memory symbol, string memo …
| ^^^^^^^^^^^^^^^^^^
Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
→ @openzeppelin/contracts-upgradeable/token/ERC721/presets/ERC721PresetMinterPauserAutoIdUpgradeable.sol:62:82:
|
62 | … init_unchained(string memory name, string memory symbol, string memory baseTokenURI) inter …
| ^^^^^^^^^^^^^^^^^^^^
Code to reproduce
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/presets/ERC721PresetMinterPauserAutoIdUpgradeable.sol";
contract LoopCompNFT is Initializable, ERC721PresetMinterPauserAutoIdUpgradeable {
function initialize(
string memory name,
string memory symbol,
string memory uri
) public virtual override initializer {
__ERC721PresetMinterPauserAutoId_init(name, symbol, uri);
}
}
Environment
“@openzeppelin/contracts-upgradeable”: “^4.1.0”,
“hardhat-deploy”: “^0.8.8”,
“hardhat-deploy-ethers”: “*”