@shuabe@PaikCapital AsSalam alikum brother, I am wondering if you can share the project to use or guide me on how I can create something like that please
Solidity Day 26 - Access Library
20 minutes daily to become a web3 developer in 30 days challenge.
✅Follow to avoid missing our daily topics
✅Join us and let's learn together.
✅Everyday new video topic will be shared at 06:30 AM CST.
https://t.co/FrnpGPHhx8
#CodiesAlert
Library are very useful way to increase productivity and reduce redundancy because library allow you to create method that can easily be used in any contract, so this way you only need to create a method for whatever you want to do and use it in the contract...
Solidity Day 25 - Library
20 minutes daily to become a web3 developer in 30 days challenge.
✅Follow to avoid missing our daily topics
✅Join us and let's learn together.
✅Everyday new video topic will be shared at 06:30 AM CST.
https://t.co/0PYh5oh7WJ
@CodiesAlert2021
It is important to understand why we are using the 'storage' and not memory because of the data manipulation is not happening in the library but the contract, and also we can only assign constant variables inside the library...
you will need the address of the deployed contract, the one you want to interact with, within the interface you can specified which functions you want to interact with, it is not necessarily to call all of the functions in there, only the one you want to interact with
Interfaces are useful when we want interact with a contract that's already been deployed and access those information, instead of 'contract' keyword interfaces start with it own keyword 'interface' and it is common practice to start the name of interface function name with a 'I'
Solidity Day 24 - Interface
20 minutes daily to become a web3 developer in 30 days challenge.
✅Follow to avoid missing our daily topics
✅Join us and let's learn together.
✅Everyday new video topic will be shared at 06:30 AM CST.
https://t.co/DuJTvfQ75D
@CodiesAlert2021
lastly 'external' function can't be used in derived function nor can they be inheritance, but it can be used in a different file after it has been deployed onto the blockchain using the contract's address, and make sure the function is set to 'view' and not 'pure',very useful vid
This class continues from the previous class, which was on inheritance, last class was based on the 'public' function which there were no problem inheriting, but if the function is set as 'private' you won't be able to inheritance into a different contract...
Solidity Day 23 - Modifier Scope
20 minutes daily to become a web3 developer in 30 days challenge.
✅Follow to avoid missing our daily topics
✅Join us and let's learn together.
✅Everyday new video topic will be shared at 06:30 AM CST.
https://t.co/PzWBnn1Y9j
#codiesalert
but you will still be able to use it in a different function but within the same contract, moving on to 'internal' function which work much like the 'public' function can be used in the derived contract and can also be inheritance...