Skip to content

Is it possible to use openzeppelin-upgradable contracts ? #673

Answered by technophile-04
mariolim96 asked this question in Q&A
Discussion options

You must be logged in to vote

Actually this is not baked in into SE-2 out of the box, but you could do it easily...checkout this demo video where I tried linking hardhat-deploy openzepllin upgrades and SE-2 : https://youtu.be/cdNyMOrw3uc?si=MTS7xmnWewiNbIG0&t=1267 (watch it on 1.5x)

Here is the repo : https://github.com/technophile-04/uups-proxy/tree/main/packages/hardhat

Mainly checkout deploy script : https://github.com/technophile-04/uups-proxy/blob/main/packages/hardhat/deploy/00_deploy_yourContract.ts

and upgrade script : https://github.com/technophile-04/uups-proxy/blob/main/packages/hardhat/scripts/upgrateToV2.ts

I think the demo video should give you the idea how it works but please let me know if you need any…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mariolim96
Comment options

@technophile-04
Comment options

Answer selected by mariolim96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants