Skip to content

Commit

Permalink
add missing awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
KillariDev committed Sep 24, 2024
1 parent 167c509 commit d1c9321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solidity/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const compilePetalLock = async () => {

var output = compile(JSON.stringify(input))
const artifactsDir = path.join(process.cwd(), 'artifacts')
if (!exists(artifactsDir)) await fs.mkdir(artifactsDir, { recursive: false })
fs.writeFile('artifacts/PetalLock.json', output)
if (!await exists(artifactsDir)) await fs.mkdir(artifactsDir, { recursive: false })
await fs.writeFile(path.join(artifactsDir, 'PetalLock.json'), output)
}

compilePetalLock().catch(error => {
Expand Down

0 comments on commit d1c9321

Please sign in to comment.