Skip to content

Commit a530dc0

Browse files
committed
Fix solcJs not working on windows
1 parent e08a6f9 commit a530dc0

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

v-next/hardhat-ignition/test/fixture-projects/minimal/hardhat.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export default {
66
},
77
production: {
88
version: "0.8.19",
9-
preferWasm: false,
109
},
1110
},
1211
},

v-next/hardhat-ignition/test/fixture-projects/reset-flag/hardhat.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export default {
66
},
77
production: {
88
version: "0.8.19",
9-
preferWasm: false,
109
settings: {
1110
metadata: {
1211
// We disable the metadata to keep the fixtures more stable

v-next/hardhat/src/internal/builtin-plugins/solidity/build-system/compiler/compiler.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,7 @@ export class SolcJsCompiler implements Compiler {
137137
const compilerFileUrl = pathToFileURL(this.compilerPath);
138138
// NOTE: The script path passed to a tsx/esm loader is an exception to the
139139
// above rule since the tsx/esm loader doesn't support URLs with a scheme.
140-
if (scriptPath.endsWith(".ts")) {
141-
args.push(scriptPath);
142-
} else {
143-
args.push(scriptFileUrl);
144-
}
140+
args.push(scriptPath);
145141
args.push(compilerFileUrl.href);
146142
} else {
147143
args.push(scriptPath, this.compilerPath);

0 commit comments

Comments
 (0)