This content originally appeared on DEV Community and was authored by chandramarch18
In Part-1, we see what is Upgradable contract
One of the basic rules of EVM is that once a contract is deployed, it cannot be changed. Instead, an upgradable smart contract uses a special proxy pattern. The latter involves deploying proxy contracts and implementation contracts (logic contracts).
- User interacts with proxy contract that intiates fallback function that deligates call to contract implementation(V1).
- Proxy contract has upgrade function to deligate call to new contract implementation(V2).
- For security purpose, upgrade function should be invoked by only Admin.
- Admin interacts with proxy admin contract which interm calls upgrade function of the proxy
This content originally appeared on DEV Community and was authored by chandramarch18

chandramarch18 | Sciencx (2022-04-16T13:49:30+00:00) Upgradable contracts (part-1). Retrieved from https://www.scien.cx/2022/04/16/upgradable-contracts-part-1/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.