Category Solidity programming

Fall Back Function in Solidity

Fall Back Functions in Solidity

Introduction The solidity fallback function is executed if no one of the opposite functions matches the function identifier. It is executed if no data was given the call. Just one unnamed function is frequently assigned to a contract. It’s executed whenever the contract receives plain Ether with…

Literals And Integers in Solidity

Solidity

Literals Solidity gives the usage of literal for assignments to variables. Literals don’t have names; they’re the values themselves. Variables can change their values during program execution, but a literal remains an equivalent value throughout. Take a glance at the subsequent samples of various literals: Ilustrations of integer literals are 1,…

Debugging in Solidity

Debugging in Solidity

Introduction Debugging is a crucial exercise when authoring Solidity smart contracts. Debugging denotes finding issues, bugs, and removing them by changing code. It’s very difficult to debug a sensible contract if there’s adequate support from tools and utilities. Generally, debugging…

Solidity Exception And Error Handling

  Solidity Exception And Error Handling

Introduction Writing contracts is that the fundamental purpose of Solidity. However, writing a contract demands sound error and exception handling. Errors and exceptions are the norms in programming and Solidity provides ample infrastructure for managing both. Writing robust contracts with proper error…