How to Write Upgradable Smart Contracts (Smart Contract Versioning)

How upgradable smart contracts work with practical examples using OpenZeppelin Upgrades CLI & Libraries.

1 Like

Thanks for posting this here :slight_smile:

This article was first published on our open-source platform, If you are interested in IPFS, Libp2p, Ethereum, Zero-knowledge Proofs, Defi, CryptoEconomics, IPLD, Multi formats, and other Web 3.0 projects, concepts and interactive tutorials, then be sure to check out

In this post, we are going to learn:

  1. Why do we need to upgrade smart contracts?
  2. Understanding how upgrades work under the hood?
  3. Using OpenZeppelin CLI to easily write/manage “upgradable” smart contracts.
  4. Upgrading Contracts Programmatically using the OpenZeppelin Upgrades library.
  5. A few Limitations & Workarounds of Upgradable Contracts

In case you get stuck somewhere or have any doubts, let us know here.


Thank you for writing this really detailed article on upgradeable solidity contracts @vasa-develop and thanks for sharing :pray:

1 Like

A post was split to a new topic: Where is the storage for an upgradeable contract?