Using OpenZeppelin upgradable smart contracts with forge #692
Unanswered
Ignacio-Freire
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I've been searching on the docs, issues and discussions for the last 2 days but I haven't been able to find anything related to this. So I decided to start a discussion and check if anyone was able to overcome this issue.
The project I'm working at has a central "controller" smart contract that is upgradable, so far we have 3 versions. While using hardhat in addition to the OpenZeppelin
test-helpers
, it's really easy to deploy the version 1 with all the parameters and then upgrade to version 3 while keeping all the data.This is done by using
deployProxy
and thenupgradeProxy
.I'm guessing the way to do this on Foundry could also be deploying the ProxyAdmin, the Proxy and the SC manually to later upgrade it.
I was wondering if there's anything similar to the
test-helpers
implemented with Foundry or if anyone has an example on how to do it.Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions