Skip to content

Commit

Permalink
Fix withSMASH double file path composition bug
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Apr 23, 2024
1 parent be203e6 commit 49d12e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/local-cluster/lib/Cardano/Wallet/Launch/Cluster/SMASH.hs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ withSMASH tr parentDir action = do
$ MsgRegisteringPoolMetadataInSMASH
(T.unpack $ toTextPoolId poolId)
hash

traceWith tr $ MsgInfo
$ "Writing pool metadata to disk " <> T.pack poolDir
createDirectoryIfMissing True poolDir
BL8.writeFile (poolDir </> hashFile) bytes
BL8.writeFile hashFile bytes
traceWith tr $ MsgInfo $ "Wrote pool metadata to disk " <> T.pack hashFile

-- Write delisted pools
let toSmashId = T.pack . B8.unpack . convertToBase Base16 . getPoolId
Expand Down

0 comments on commit 49d12e5

Please sign in to comment.