Introduction The word enum in solidity stands for Enumerable as it does in most of the other languages. Enum is a user defined data type which contains set of a…
In Solidity it wasn’t possible to pass struct as parameter but with the introduction of experimental library ABIEncoderV2, it could be done. Solution Code Explanation In this code I have…
In solidity, you must have wondered which one will make my code more efficient and my smart contracts better – Is it bytes32 or string? Today we will learn how…
In Solidity, you may encounter this error, “send and transfer are only available for objects of type address payable, not address” when you try to run function calls like .transfer()…