Paths

When importing a solidity file, the file path follows a few simple syntax rules:

  • Absolute paths: /folder1/ folder2/xxx.sol starting from /, the path location is from same solidity file location to the imported files. In our ERC 20 example, this is shown as follows:
      import 'zeppelin/contracts/math/SafeMath.sol';

The actual project structure appears as follows:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset