Import
Global Import
import “./MySolidityFile.sol”;Instead, the Solidity docs recommend specifying imported symbols explicitly.
Import { ContractA } from “./MySolidityFile.sol”;Import Aliases
Global Aliases
// longer syntax
import * as Endpoints from “./Endpoints.sol”.
// shorter syntax
import “./Endpoints.sol” as Endpoints;Specific Aliases
Last updated