Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function compiler(
{ artifactsDir, contractAbstractionDir }: config.App,
cwd: string,
subDir: string,
): TypeChain {
return new TypeChain({
cwd,
rawConfig: {
files: join(artifactsDir, subDir, '**', '*.json'),
outDir: join(contractAbstractionDir, 'ethers', subDir),
target: 'ethers-v4',
},
})
}