Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
IAvecilla committed Aug 27, 2024
1 parent ca6b3cb commit ad52dd8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions system-contracts/scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,13 @@ export async function getSolcLocation(): Promise<string> {

const solcVersion = hre.config.solidity.compilers[0].version;

if (!await downloader.isCompilerDownloaded(solcVersion)) {
if (!(await downloader.isCompilerDownloaded(solcVersion))) {
console.log(`Compiler ${solcVersion} not found, downloading...`);
await downloader.downloadCompiler(solcVersion, async () => false, async () => false);
await downloader.downloadCompiler(
solcVersion,
async () => {},
async () => {}
);
}

return (await downloader.getCompiler(solcVersion))!.compilerPath;
Expand Down

0 comments on commit ad52dd8

Please sign in to comment.