hi guys!
Is there anyone who has worked with contracts through a proxy? Tell me how to properly deploy a contract through a proxy.

Mar 1, 2022, 6:11 AM
theres some libraries u can use on hardhat and shit to abstract this stuff away
but all it is is a proxy contract that does delegateCall to ur implementation contract
the implementation contract addy can be changable on the proxy contract
u gotta keep the same interface thu when u deploy a new implementation contract
Mar 1, 2022, 6:14 AM
thanks! i see.
I implemented my proxy contract
i wanted to deploy it together with the logical contract
Mar 1, 2022, 6:26 AM
Ye, easiest way is just deploying logic contract first - fetching address for it - deploy proxy and pass in logic contract address in constructor
Mar 1, 2022, 6:28 AM
i see. thanks
Mar 1, 2022, 6:29 AM
This.
Mar 1, 2022, 6:39 AM

© 2024 Draquery.com All rights reserved.