Skip to content

Commit

Permalink
Merge pull request #57 from DarkFlorist/awaits
Browse files Browse the repository at this point in the history
add missing awaits
  • Loading branch information
KillariDev authored Sep 24, 2024
2 parents 167c509 + d1c9321 commit 7a96975
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 7a96975

Please sign in to comment.