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

Commit d3a2fc8

Browse files
committed
correct error with new compilers cache property
1 parent e817d97 commit d3a2fc8

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
@@ -61,8 +61,8 @@ export const getInitialConfig = ({
6161
grep: null
6262
},
6363
compilers: {
64-
cache: "fileSystem",
6564
solc: {
65+
cache: "fileSystem",
6666
settings: {
6767
//Note: The default solc version is *not* set here!
6868
//It's set in compilerSupplier/index.js in compile-solidity

0 commit comments

Comments
 (0)