From 8d72e253c8bbe371e091b1ea6d365af07fd2ed26 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 30 Jan 2019 13:06:49 +0100 Subject: Add a comment --- packages/sol-compiler/src/utils/compiler.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/sol-compiler') diff --git a/packages/sol-compiler/src/utils/compiler.ts b/packages/sol-compiler/src/utils/compiler.ts index f02f872f3..77a969e1c 100644 --- a/packages/sol-compiler/src/utils/compiler.ts +++ b/packages/sol-compiler/src/utils/compiler.ts @@ -148,6 +148,11 @@ export async function compileDockerAsync( return compiled; } +/** + * Example "relative" paths: + * /user/leo/0x-monorepo/contracts/extensions/contracts/extension.sol -> extension.sol + * /user/leo/0x-monorepo/node_modules/@0x/contracts-protocol/contracts/exchange.sol -> @0x/contracts-protocol/contracts/exchange.sol + */ function makeContractPathRelative( absolutePath: string, contractsDir: string, -- cgit v1.2.3