File examples for video tutorial for DappUnivestity YouTube channel
- Make a flat file:
npm i
./node_modules/.bin/truffle-flattener contracts/OwnedUpgradeabilityProxy.sol > flat_proxy.sol
Deploy OwnedUpgradeabilityProxy
-
Deploy Implementation file V0:
./contracts/implementation/ImplV0.sol
-
Call
upgradeTo
method on deployed Proxy contract with parameter of deployedImplV0
contract -
Deploy
ImplV1.sol
from./contracts/implementation/ImplV1.sol
-
Call
upgradeTo
method on deployed Proxy contract with parameter of deployedImplV1
contract