File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
v-next/hardhat/src/internal/builtin-plugins/solidity Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import type {
11
11
} from "../../../types/config.js" ;
12
12
import type { HardhatUserConfigValidationError } from "../../../types/hooks.js" ;
13
13
14
- import { isObject } from "@nomicfoundation/hardhat-utils/lang" ;
14
+ import { deepMerge , isObject } from "@nomicfoundation/hardhat-utils/lang" ;
15
15
import { resolveFromRoot } from "@nomicfoundation/hardhat-utils/path" ;
16
16
import {
17
17
conditionalUnionType ,
@@ -303,8 +303,26 @@ function resolveBuildProfileConfig(
303
303
}
304
304
305
305
function resolveSolcConfig ( solcConfig : SolcUserConfig ) : SolcConfig {
306
+ const DEFAULT_SOLC_CONFIG_SETTINGS : SolcConfig [ "settings" ] = {
307
+ outputSelection : {
308
+ "*" : {
309
+ "" : [ "ast" ] ,
310
+ "*" : [
311
+ "abi" ,
312
+ "evm.bytecode" ,
313
+ "evm.deployedBytecode" ,
314
+ "evm.methodIdentifiers" ,
315
+ "metadata" ,
316
+ ] ,
317
+ } ,
318
+ } ,
319
+ } ;
320
+
306
321
return {
307
322
version : solcConfig . version ,
308
- settings : solcConfig . settings ?? { } ,
323
+ settings : deepMerge (
324
+ DEFAULT_SOLC_CONFIG_SETTINGS ,
325
+ solcConfig . settings ?? { } ,
326
+ ) ,
309
327
} ;
310
328
}
You can’t perform that action at this time.
0 commit comments