Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:smartcontracts/chugsplash into s…
Browse files Browse the repository at this point in the history
…g/develop
  • Loading branch information
sam-goldman committed Nov 17, 2022
2 parents 098a831 + c167049 commit 2557846
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/four-drinks-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chugsplash/plugins': patch
---

Fix bug parsing build info metadata
6 changes: 5 additions & 1 deletion packages/plugins/src/hardhat/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,11 @@ export const createDeploymentArtifacts = async (

const metadata =
buildInfo.output.contracts[sourceName][contractName].metadata
const { devdoc, userdoc } = JSON.parse(metadata).output

const { devdoc, userdoc } =
typeof metadata === 'string'
? JSON.parse(metadata).output
: metadata.output

const deploymentArtifact = {
contractName,
Expand Down

0 comments on commit 2557846

Please sign in to comment.