Storage – data stored on the block chain. State variables will have a memory location of storage. You do not…
Solidity
Keccak256 hash function in Solidity
You can use Keccak256 hashing to authenticate payloads of data. For example, consider an object that generates a unique hash.…
Solidity contract clean up function
The only way code is removed from the blockchain is when a contract owner calls the self destruct operation. The…
Using Import in Solidity smart contracts
To make development easier you can use the import statement in your smart contract to reference contracts stored in other…
Payable modifier in Solidity smart contracts
Payable function modifiers provide a mechanism to receive funds in your smart contract. These functions are annotated with the payable…
Struct in Solidity smart contracts
Structs are custom data types that can group several variables. They represent a record of “something”. Suppose you want to…
Enum in Solidity smart contracts
Short for enumeration, enums restrict a variable to have one of only a few predefined values. The values in this…
Maps in a solidity smart contract
This post has been updated click here A map is like a hash table that allows you to save data…