Lesson

Crypto Zombies Lesson 2, Chapter 6, Import, Imports in Solidity

Lesson Summary

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.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: