From 7520f4444913b1ffe275542186500f52a584b5e5 Mon Sep 17 00:00:00 2001 From: Ilya Ostrovskiy Date: Thu, 28 Mar 2019 14:58:52 -0400 Subject: [PATCH] add :g= to remapping syntax for solc >=0.5 compatibility. this does not appear to break 0.4.24, but YMMV --- src/Chanterelle/Internal/Compile.purs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Chanterelle/Internal/Compile.purs b/src/Chanterelle/Internal/Compile.purs index cbacbbe..80a5bd4 100644 --- a/src/Chanterelle/Internal/Compile.purs +++ b/src/Chanterelle/Internal/Compile.purs @@ -168,7 +168,7 @@ makeSolcInput moduleName sourcePath = do sources = M.singleton (moduleName <> ".sol") (makeSolcContract code) outputSelection = M.singleton "*" (M.singleton "*" (["abi", "evm.deployedBytecode.object", "evm.bytecode.object"] <> spec.solcOutputSelection)) depMappings = (\(Dependency dep) -> dep <> "=" <> (project.root <> "/node_modules/" <> dep)) <$> spec.dependencies - sourceDirMapping = [":g" <> (Path.concat [project.root, spec.sourceDir])] + sourceDirMapping = [":g=" <> (Path.concat [project.root, spec.sourceDir])] remappings = sourceDirMapping <> depMappings optimizer = fromMaybe defaultSolcOptimizerSettings spec.solcOptimizerSettings settings = SolcSettings { outputSelection, remappings, libraries, optimizer }