Using Strings for uint256 not working with ERC721EnumerableUpgradeable

Hello, just like the title says I cannot get using Strings to compile, I keep getting the identifier not found.
This is the start of my .sol contract

import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";

contract NFT is Initializable, StringsUpgradeable, ERC721EnumerableUpgradeable, OwnableUpgradeable {
using Strings for uint256; 

Please help!

Thank you!

1 Like

try changing String to StringsUpgradeable

using StringsUpgradeable for uint256;

1 Like

Thank you very much, it worked!!

1 Like