Skip to content

Learn to upgrade Ethereum smart contracts with the unstructured storage pattern

Notifications You must be signed in to change notification settings

sabri0/unsructured_storage

 
 

Repository files navigation

File examples for video tutorial for DappUnivestity YouTube channel

To deploy

  1. Make a flat file:
npm i
./node_modules/.bin/truffle-flattener contracts/OwnedUpgradeabilityProxy.sol > flat_proxy.sol

Deploy OwnedUpgradeabilityProxy

  1. Deploy Implementation file V0: ./contracts/implementation/ImplV0.sol

  2. Call upgradeTo method on deployed Proxy contract with parameter of deployed ImplV0 contract

  3. Deploy ImplV1.sol from ./contracts/implementation/ImplV1.sol

  4. Call upgradeTo method on deployed Proxy contract with parameter of deployed ImplV1 contract

About

Learn to upgrade Ethereum smart contracts with the unstructured storage pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%