What if you find a bug after deployment?
As discussed in Chapter 8, Smart Contract Security, the immutability of smart contracts can bring some disadvantages, such as when fixing a bug that is found after deployment. The contracts can be designed in a way that the effect of a bug can be reduced to a minimum, which can help in overcoming such limitations.
In this chapter, you will learn about various design techniques to minimize the effect of a bug found after a deployment process.
Getting ready
It is required to have at least a basic knowledge of writing smart contracts and building DApps using Web3JS. Understanding the implementation of a basic DApp is essential for getting the most out of this recipe.
For those who are new to this, it is recommended to read through the first three chapters of this book. It is also recommended to refer to Chapter 8, Smart Contract Security, for more information on common bugs that can occur while writing smart contracts.
How to do it…
- It is not possible to fix...