-
Cost Based Restriction in Smart Contract Solidity
Here we apply cost based restriction, in which sender can’t able to send ethers less than cost defined my contract Owner.
-
Time Based Restriction in Smart Contract Solidity
Sometime we need to apply time base restrictions for special offer or ICO. Below, is the example for timebase restriction.
-
Difference between Send, Transfer, Call methods and reentrancy Attack and its Solution.
You can see here the difference b/w transfer, send method. Now, Here is the difference b/w transfer, send and call method. Here is the reentrancy attack Now protect from reentrancy attack: Another example to protect contract from reentrancy attack with the help of modifier:
-
Return Multiple Values and get into another function in Solidity
Normally we find a method in which we only able to return a single entity like this one, but in solidity we can return multiple values and get them in other function or also view that values. Here is the example of returning multiple values: