In this lesson from the Loom Network's Crypto Zombies we learn how to use code from another file in a seperate file. Using code from another file is possible in Solidity using an import statement. Using an import statement allows us to require code from another file in the present file being worked on. We are able to import code from another file by first using the key word "import" then the path to the code we want to import placed withing quotation marks. If the path is entered correctly, we can then access that code in the present file.
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.