File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
v-next/hardhat/src/internal/builtin-plugins/solidity/build-system Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- " @nomicfoundation/hardhat-verify " : patch
3
2
" @nomicfoundation/hardhat-utils " : patch
4
3
" hardhat " : patch
5
4
---
Original file line number Diff line number Diff line change @@ -336,7 +336,9 @@ export class SolidityBuildSystemImplementation implements SolidityBuildSystem {
336
336
let solcLongVersion = solcVersionToLongVersion . get ( solcConfig . version ) ;
337
337
338
338
if ( solcLongVersion === undefined ) {
339
- const compiler = await getCompiler ( solcConfig . version , false ) ;
339
+ const compiler = await getCompiler ( solcConfig . version , {
340
+ preferWasm : false ,
341
+ } ) ;
340
342
solcLongVersion = compiler . longVersion ;
341
343
solcVersionToLongVersion . set ( solcConfig . version , solcLongVersion ) ;
342
344
}
@@ -496,8 +498,7 @@ export class SolidityBuildSystemImplementation implements SolidityBuildSystem {
496
498
return { compilationJobsPerFile, indexedIndividualJobs } ;
497
499
}
498
500
499
- #getBuildProfile( _buildProfileName ?: string ) {
500
- const buildProfileName = _buildProfileName ?? DEFAULT_BUILD_PROFILE ;
501
+ #getBuildProfile( buildProfileName : string = DEFAULT_BUILD_PROFILE ) {
501
502
const buildProfile =
502
503
this . #options. solidityConfig . profiles [ buildProfileName ] ;
503
504
@@ -531,7 +532,7 @@ export class SolidityBuildSystemImplementation implements SolidityBuildSystem {
531
532
532
533
const compiler = await getCompiler (
533
534
runnableCompilationJob . solcConfig . version ,
534
- buildProfile . preferWasm ,
535
+ { preferWasm : buildProfile . preferWasm } ,
535
536
) ;
536
537
537
538
log (
Original file line number Diff line number Diff line change @@ -79,9 +79,9 @@ export async function downloadConfiguredCompilers(
79
79
80
80
export async function getCompiler (
81
81
version : string ,
82
- preferWasm : boolean ,
82
+ { preferWasm } : { preferWasm : boolean } ,
83
83
) : Promise < Compiler > {
84
- if ( preferWasm === false ) {
84
+ if ( ! preferWasm ) {
85
85
const platform = CompilerDownloaderImplementation . getCompilerPlatform ( ) ;
86
86
const compilerDownloader = new CompilerDownloaderImplementation (
87
87
platform ,
You can’t perform that action at this time.
0 commit comments