Skip to content

Commit

Permalink
Merge pull request #96 from f-o-a-m/solc-0.5-compat
Browse files Browse the repository at this point in the history
add :g= to remapping syntax for solc >=0.5 compatibility.
  • Loading branch information
iostat committed Mar 28, 2019
2 parents 1402315 + 7520f44 commit a1c29d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Chanterelle/Internal/Compile.purs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit a1c29d0

Please sign in to comment.