Book Image

The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts [Video]

By : Clarian North
5 (2)
Book Image

The Complete Solidity Course - Zero to Advanced for Blockchain and Smart Contracts [Video]

5 (2)
By: Clarian North

Overview of this book

Solidity is the most popular blockchain language in the world designed to build DApplications (Smart Contracts). It powers Ethereum and there is an in-demand exponential growth of high-paying jobs all over the world, which is changing the way we conduct business. The course starts with covering the Solidity fundamentals including variables, if/else, operators, Boolean logic, functions, arrays, modifiers, loops, strings, and more. You will also learn Solidity from scratch with topics such as public and private visibility, struct and Enums, special global and blockchain variables, suffixes, and addresses. You will also learn how Solidity works behind the scenes including the Ethereum Virtual Machine (EVM) and assembly, events and logging blockchain emissions, send versus transfer methods, scoping, and more. There will be a deep dive into functions such as modifier functions, cryptographic functions, fallback functions, and function overloading. Object-oriented programming will also be covered in depth along with advanced patterns. This knowledge will be applied to build an Auction DApplication as well as plug into the live main net and access the Ethereum Blockchain Data through real-world DApplications. Finally, you will learn Solidity techniques that are used by professionals in blockchain including test network deployment, IDE, debugging, and compiling. By the end of the course, you will have the knowledge and confidence that you need in order to ace your Solidity blockchain job interviews and become a professional developer for smart contracts and DApplications.
Table of Contents (12 chapters)
Chapter 9
Solidity Patterns I - Cybersecurity
Content Locked
Section 6
Should Contracts Be Allowed to Receive Funds? (Thought Experiment)
In the world of blockchain and cryptocurrencies, smart contracts have the ability to receive and transfer funds. However, this raises the question of whether contracts should be allowed to receive funds or not. On one hand, allowing contracts to receive funds can enable them to carry out certain functions such as paying out rewards or collecting fees. On the other hand, this could also make them vulnerable to attacks or mistakes that could result in the loss of funds. In this thought experiment video, we will explore the pros and cons of allowing contracts to receive funds and examine some potential scenarios where this feature could be useful or problematic. Ultimately, the decision of whether or not to allow contracts to receive funds depends on the specific use case and the level of risk that one is willing to accept.