From ad52dd8bc455a578d357ba26db7ef1b7fbe161aa Mon Sep 17 00:00:00 2001 From: IAvecilla Date: Tue, 27 Aug 2024 13:19:07 -0300 Subject: [PATCH] Fix lint errors --- system-contracts/scripts/utils.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/system-contracts/scripts/utils.ts b/system-contracts/scripts/utils.ts index 21390eb02..b8188c0e4 100644 --- a/system-contracts/scripts/utils.ts +++ b/system-contracts/scripts/utils.ts @@ -207,9 +207,13 @@ export async function getSolcLocation(): Promise { 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;