Solidity Programming Language – Fixed Sized Array
fixed-size arrays are arrays with a predefined and fixed number of elements. These arrays have a specific size that is...
Solidity Programming Language – Overflow
CVE-2018-10299 In simple language, an overflow is when a number gets incremented above its maximum value. Solidity can handle up...
Solidity Programming Language – Continue and Break Statement
We can use continue and break statements within loops to control the flow of execution. Continue: Break: Both continue and...
Solidity Programming Language – Loops (For, While, Do-While)
In Solidity, loops are used to repeat a set of instructions multiple times. There are two main types of loops...
Solidity Programming Language – Ternary Operator
In Solidity, the ternary operator is used to write concise conditional statements. Use Case: Here’s an example to illustrate its...
Solidity Programming Language – If-else
In Solidity, if-else statement for conditional execution of code. Here’s a basic example: In this example, the checkNumber function takes...
Solidity Programming Language – Constructor
At the time when the smart contract is executed -> constructor is the 1st one that is executed. In 1...
Solidity Programming Language – Functions | Getter and Setter Function
In Solidity, a programming language for developing smart contracts on the Ethereum blockchain, getter and setter functions are commonly used...
Solidity Programming Language – Strings, Default Value & Constants
Strings: String by default store on blockchain. When we are using a string in the function we need to use...
Solidity Programming Language -Pure , View & Simple Function
View: Read is allowed but right is not allowed. Pure: Read and Write is not allowed for state variables only...