Creating an openzeppelin-contracts-upgradeable Smart Contract

I have created a smart contract with the “standard” openzeppelin library for an ERC721 token (It has not been deployed yet). I would like to make my contract upgradeable. Can I simply install openzeppelin-contracts-upgradeable in my project (instead of the @openzeppelin/contracts one) and import its modules as they are in my smart contract (besides being careful to change any constructor to an initializer in my own smart contract)? Does the openzeppelin-contracts-upgradeable library contain all the same functions as the @openzeppelin/contracts one?

Thank you. J

Yes, I think so.

And you can have a look at this tutorial:

Thank you for your answer @Skyge !

1 Like