Smart Contract Versioning

Written by vasa | Published 2020/02/27
Tech Story Tags: ethereum | smart-contracts | solidity | upgradable-smart-contract | openzeppelin | smart-contract-versioning | blockchain | upgradable-smart-contracts

TLDR Using OpenZeppelin CLI to easily write/manage "upgradable" smart contracts. Smart contracts in Ethereum are immutable by default. There are a lot of examples in which millions of dollars worth of Ether were stolen/hacked, which could be saved if we could update the contracts. There can be several ways we can upgrade our contracts. The most obvious way is to manually migrate all states from the old contract to the new contract. This seems to work, but has several problems. Using a proxy contract with an interface where each method delegates to the implementation contract is better.via the TL;DR App

no story

Written by vasa | Entrepreneur | Co-founder @tbc_inc, an MIT CIC incubated startup | Speaker |https://vaibhavsaini.com
Published by HackerNoon on 2020/02/27