Solidity Inheritance, Modifiers and Importing of Files¶
In this Lab you will learn how Solidity Inheritance works, what's it for and how to use Modifiers.
We will create a long and spaghetti-like Smart Contract. Then we improve it step-by-step by using first a modifier, then separate logic into an external Smart Contract and then finally into an external File.
What You Know At The End Of The Lab¶
🎭 Modifiers
🧱 Inheritance
🗃 Importing of external Files
Prerequisites - You need:¶
-
Chrome or Firefox browser.
-
An Internet connection
-
About 60 Minutes of your precious time ⌛
Get Started¶
💪 💪 💪 Let's get started!
Using Solidity 0.8
These labs were updated to Solidity 0.8 and can differ from the videos slightly. Please pay attention to the callouts where appropriate.