Solidity Function Constructors – A Helpful Simplified Guide with Video

In this article, we’ll learn about function constructors, a Solidity language feature enabling us to execute a function during smart contract creation. It’s part of our long-standing tradition to make this (and other) articles a faithful companion or a supplement to the official Solidity documentation. We’ll base this article on the original Solidity programming language … Read more

Solidity Function Overloading

In this article, we’ll learn about function overloading πŸŽ›οΈπŸ”πŸ‘·β€β™‚οΈπŸ’»πŸš€, a useful and interesting feature in the Solidity programming language. It’s part of our long-standing tradition to make this (and other) articles a faithful companion or a supplement to the official Solidity documentation. We’ll base this article on the original Solidity programming language content. Overview Function … Read more

Solidity’s Fallback Function – A Simple Guide

In this article, we will focus on the second topic of the interesting pair, the fallback function, as a follow-up on the receive ether function discussed in the previous article. It’s part of our long-standing tradition to make this (and other) articles a faithful companion, or a supplement to the official Solidity documentation. Overview The … Read more

Solidity Receive Ether Function

In this article, we will focus on an important topic, the receive Ether function in Solidity. This function allows us to receive the currency and is the first of the two possible approaches for receiving currency. The other approach is the fallback function, and we’ll briefly introduce it here to become aware of the wider … Read more

Solidity Function Visibility Made Easy

Solidity has many useful features that enable us, smart contract developers, to make safe, secure, and functional smart contracts. We have discussed other interesting Solidity features, and this time, we’ll focus on one very important feature of Solidity called function visibility. It determines who can call a function and who can access its variables. In … Read more

Solidity Error Handling with Assert, Require, and Revert Functions

In this article, we’ll get a closer look at four main mechanisms for error handling in Solidity: functions assert, require, revert, and another approach based on exceptions. These mechanisms will help us tremendously in achieving stable and secure smart contracts, so this is the right moment to introduce them and lay the ground for a … Read more

Solidity Checked and Unchecked Expressions

In this article, we’ll learn about checked and unchecked expressions and when to use each of them. It’s part of our long-standing tradition to make this (and other) articles a faithful companion or a supplement to the official Solidity documentation for this article’s topic. We should consider whether an expression should be checked or unchecked … Read more

Solidity Scoping – A Helpful Guide with Video

As promised in the previous article, we’ll get more closely familiar with the concept of scoping next. We’ll explain what scoping is, why it exists, and how it helps us in programming. It’s part of our long-standing tradition to make this (and other) articles a faithful companion, or a supplement to the official Solidity documentation. … Read more

Solidity Assignments for Arrays and Structs

In this article, we’ll continue on the topic of the assignments, which we started in the previous article while talking about tuples. This article’s topic will focus on possible challenges when dealing with arrays and structs and the right approaches to resolve them. It’s part of our long-standing tradition to make this (and other) articles … Read more

Breaking Down Solidity Expression Trees and Tuple Assignments

In this article, we’ll start familiarizing ourselves with the order of evaluating expressions in Solidity. Plus, you’ll learn about multiple assignments (tuple assignments). Let’s go! πŸ’ͺ It’s part of our long-standing tradition to make this (and other) articles a faithful companion or a supplement to the official Solidity documentation. Order of Evaluation of Expressions Some … Read more

Spice Up Your Solidity with Salted Contract Creations & create2

Salted contract creation uses cryptographic “salt” to add an additional layer of security to a smart contract. Salt is a random string added to the contract code to make it harder for an attacker to reverse engineer the code and gain access to the contract. This makes the contract more secure and helps protect the … Read more