paint-brush
Smart Contract Versioningby@vasa
2,893 reads
2,893 reads

Smart Contract Versioning

by Vaibhav Saini22mFebruary 27th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image -  Smart Contract Versioning
Vaibhav Saini HackerNoon profile picture
Vaibhav Saini

Vaibhav Saini

@vasa

Entrepreneur | Co-founder @tbc_inc, an MIT CIC incubated startup | Speaker |https://vaibhavsaini.com

About @vasa
LEARN MORE ABOUT @VASA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Vaibhav Saini HackerNoon profile picture
Vaibhav Saini@vasa
Entrepreneur | Co-founder @tbc_inc, an MIT CIC incubated startup | Speaker |https://vaibhavsaini.com

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite