Using this same method on the new upgradable libs I get an error message. Could you help me out with this? In fact I’m having a lot of issues using the ‘Extensions’…
....
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
contract MyContract is ERC721Upgradeable, OwnableUpgradeable {
function initialize() public initializer {
__ERC721_init("MyNFT", "NFT");
OwnableUpgradeable.initialize(msg.sender);
}
}
I tried to keep the example as simple as possible, by not creating an explicit initialize function and just reused store. Sorry if this tripped you up.
It’s no worries, I kind of thought it was like a C# class where the constructor/initialize method occurred before the store function. I should’ve looked at that earlier myself to be honest. Thank you for the help, it’s reassuring to know that this library is backed by such an active community.