Skip to content

Commit

Permalink
Solc.useCompiler is now Aff
Browse files Browse the repository at this point in the history
  • Loading branch information
iostat committed Sep 8, 2023
1 parent 9622613 commit 5acf526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Chanterelle/Project.purs
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ mkProjectSolc version artifactPath = runExceptT $
case cacheAttempt of
Right src -> do
log Info $ "Using cached solc " <> v <> " at " <> compilerCacheFile
let compiler = Solc.useCompiler src
compiler <- Solc.useCompiler src
pure { compilerOrigin: "Cached", compiler }
Left _ -> do
log Info $ "Downloading solc " <> v <> " to " <> compilerCacheFile
assertDirectory compilerCacheDirectory
source <- ExceptT $ SolcReleases.getReleaseSource SolcReleases.defaultReleaseRepo v
writeTextFile compilerCacheFile source
log Info $ "solc " <> v <> " download completed..."
let compiler = Solc.useCompiler source
compiler <- Solc.useCompiler source
pure { compilerOrigin: "Downloaded", compiler }

loadProject
Expand Down

0 comments on commit 5acf526

Please sign in to comment.