Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 64d3272

Browse files
committed
correct error with new compilers cache property
1 parent 88a933a commit 64d3272

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/compile-solidity/src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ async function invokeCompiler({ compilerInput, options, solc }): Promise<{
246246
parser: options.parser,
247247
events: options.events,
248248
solcConfig: options.compilers.solc,
249-
cache: options.compilers.cache
249+
cache: options.compilers.solc?.cache
250250
};
251251

252252
// in the browser, compile in a worker and return the result

packages/config/src/configDefaults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export const getInitialConfig = ({
6060
grep: null
6161
},
6262
compilers: {
63-
cache: "fileSystem",
6463
solc: {
64+
cache: "fileSystem",
6565
settings: {
6666
//Note: The default solc version is *not* set here!
6767
//It's set in compilerSupplier/index.js in compile-solidity

0 commit comments

Comments
 (0)