Skip to content

Commit

Permalink
fix: resolve smock helper path (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
agusduha authored Apr 4, 2024
1 parent 317d8d5 commit b8fade5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/smock-foundry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export async function generateMockContracts(
// Generate SmockHelper contract
const smockHelperTemplate = await getSmockHelperTemplate();
const smockHelperCode: string = smockHelperTemplate({});
writeFileSync(`${mocksDirectory}/SmockHelper.sol`, smockHelperCode);
const helperPath = path.resolve(rootPath, mocksDirectory);
writeFileSync(`${helperPath}/SmockHelper.sol`, smockHelperCode);

console.log('Mock contracts generated successfully');

Expand Down

0 comments on commit b8fade5

Please sign in to comment.