Source link

The Eternal Storage design pattern in Solidity allows a web3 to change, or upgrade, the underlying smart contract without losing the data stored in the blockchain by the deprecated contract.

A step-by-step tutorial exploring the motivations and different ways to tackle the problem, until reaching a solid solution.

Solidity is a programming language for implementing smart contracts that run on the Ethereum virtual machine. You can use Solidity to create smart contracts on blockchain networks such as Ethereum, Binance Smart Chain, Polygon, and others.

You can find the code for this tutorial on the channel repository:
https://github.com/salvadorjesus/Crypto-Lockpick-Code

Resources:
Original post where this pattern was proposed:
https://blog.colony.io/writing-upgradeable-contracts-in-solidity-6743f0eecc88/

Written tutorial about the pattern:
https://fravoll.github.io/solidity-patterns/eternal_storage.html

A simple example in the “Ethereum Blockchain Developer” course, with step-by-step on how to use it in Remix:
https://ethereum-blockchain-developer.com/110-upgrade-smart-contracts/04-eternal-storage/

date : 2024-01-08 18:33:11

views : 50

likes : 2

rating :

found searching for solidity tutorial

LEAVE A REPLY

Please enter your comment!
Please enter your name here