USING ASSERT FUNCTION TO CHECK CONDITIONS
In this video, we will see how to use "assert" function to check an important condition before executing a function. "assert" function is not much used, it is mostly used for testing or in libraries but still we need to know what it is. When "assert" function fails, it consumes all the remaining gas, while reverting back all the changes made to the contract.
We will create our Solidity smart contract by using Remix.
Github:
https://github.com/abdulhakim-altunka...
NOTE: All videos on this channel are for exercise purposes. For tutorial purposes I kindly advise you to watch great teachers below:
Solidity:
1) Smart Contract Programmer:
/ @smartcontractprogrammer
2) Eat the Blocks:
/ @eattheblocks
3) Dapp University:
/ @dappuniversity
Node-React-Javascript:
1) The Net Ninja:
/ @netninja
2) Dave Gray :
/ @davegrayteachescode
For Comments & Questions:
[email protected]
Buy me a Coffee:
buymeacoff.ee/softtomato