Summary
In this chapter, you have learned how to create a real-world application where blockchain technology can shine. This real-world application is a voting application. From a simple voting smart contract where every account can vote, we gradually created a voting application in which only certain accounts can vote using a token system. When building this voting smart contract, we also learned about how to write a script to deploy a smart contract with constructors. After deploying a smart contract, we also learned a feature from smart contracts, which is an event. In a web3 script, we subscribe to this event to learn about things that interest us. Finally, we created helper scripts to create many accounts and send money to other accounts ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access