From a2c8213a9c1f486dacfcc8a1b07c41d287e9019a Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <0xtekgrinder@protonmail.com> Date: Tue, 5 Mar 2024 18:41:34 -0500 Subject: [PATCH] feat: add --isolate flaf to gas estimation of solidity --- toolchains/solidity/extension/src/gas-estimation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchains/solidity/extension/src/gas-estimation.ts b/toolchains/solidity/extension/src/gas-estimation.ts index 49fe366d..54b94808 100644 --- a/toolchains/solidity/extension/src/gas-estimation.ts +++ b/toolchains/solidity/extension/src/gas-estimation.ts @@ -33,7 +33,7 @@ async function gasReportTests(cwd: string): Promise { let decorations: ReportDecorators = new Map(); // Gas estimation from the tests - await new Promise((resolve, reject) => exec("forge test --gas-report", { cwd }, async (error: any, _stdout: any, _stderr: any) => { + await new Promise((resolve, reject) => exec("forge test --gas-report --isolate", { cwd }, async (error: any, _stdout: any, _stderr: any) => { if (error) { console.log("error", error); reject(error);