Skip to content

Commit

Permalink
feat: enhance writeMastercopy* functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cristovaoth committed Sep 10, 2024
1 parent 1b99ccd commit 6465e57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/artifact/writeMastercopyFromBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function writeMastercopyFromBuild({
compilerInput?: any;
buildDirPath?: string;
mastercopyArtifactsFile?: string;
}) {
}): MastercopyArtifact {
const buildArtifact = getBuildArtifact(contractName, buildDirPath);

const mastercopies = existsSync(mastercopyArtifactsFile)
Expand Down Expand Up @@ -111,4 +111,6 @@ export default function writeMastercopyFromBuild({
JSON.stringify(sortedMastercopies, null, 2),
"utf8"
);

return mastercopyArtifact;
}
2 changes: 2 additions & 0 deletions src/artifact/writeMastercopyFromExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,6 @@ export default async function writeMastercopyFromExplorer({
JSON.stringify(sortedMastercopies, null, 2),
"utf8"
);

return mastercopyArtifact;
}

0 comments on commit 6465e57

Please sign in to comment.