Chapter 6. Writing more complex smart contracts
- Building a crowdsale management Dapp showing how to structure complex contracts
- Extending the crowdsale management Dapp through single and multiple inheritance
The purpose of the previous chapter was to give you a foundation in Solidity, so I focused mainly on the basic syntax that the language offers. In the next two chapters, I’ll introduce more advanced object-oriented (OO) features. I’ll start with inheritance in chapter 6 and follow with abstract contracts and interfaces in chapter 7. These OO features allow you to reduce code duplication and make your contracts more composable.
The contract side of real-world Dapps is generally more complex than ...
Get Building Ethereum Dapps now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.