August 2018
Intermediate to advanced
404 pages
11h 19m
English
The architecture of the upgradable contract discussed in this recipe can be explained as follows. A proxy contract keeps track of a logic contract that can be upgraded and requires states. When a transaction is submitted, the proxy uses the updated logic contract for any logic execution and stores the result in the state contract, as illustrated in the following diagram:

The design explained in this recipe can be considered as a basic example of how you can write upgradable smart contracts in Ethereum. The idea is to use proxy contracts to redirect transactions to the latest version of the code. You can modify the design based ...