You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(dir.length===2){// array contract path is "./" + contract.sol, i.e simple import in the same folder as the compile.js
37
+
sourceCodeToImport=fs.readFileSync(`./${path}`);
38
+
return{contents: `${sourceCodeToImport}`};
41
39
}
42
-
}));
40
+
if(!path.includes("/")){// === contract to import is in the same folder as the contract we are compiling i.e the import path from the contract fiel doesn't include "/"
0 commit comments