Below is a address book Solidity smart contract. It allows one to save a list of Ethereum account address’s to…
Sample Solidity smart contract
Below is a sample Solidity smart contract called My First Contract. The contract sets and gets two variables (name and…
Inheritance in Solidity smart contracts
With Solidity contracts one can use inheritance which is a way of extending the functionality of a contract, helps organize…
Memory vs Storage in Solidity smart contracts
Storage – data stored on the block chain. State variables will have a memory location of storage. You do not…
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…