Chapter 12, Upgradable Smart Contracts
- A contract address can be supplied to another contract either at the time of contract deployment or following deployment. A constructor can be used to supply the value of the contract address at the time of deployment, while a function can help to update the contract address. This pattern aids in writing upgradable smart contracts.
- Yes, it is possible to do so.
- We need upgradable smart contracts to future-proof smart contracts. Smart contracts, once deployed, are immutable, and upgradable smart contracts assist in overcoming this feature of smart contracts.