Skip to content

Commit

Permalink
fix: add new compiler properties in the zksolc hardhat config object
Browse files Browse the repository at this point in the history
  • Loading branch information
kiriyaga-txfusion committed Mar 3, 2025
1 parent 8711e0e commit 9bc9abd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/hardhat-zksync-solc/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ export interface ZkSolcConfig {
forceContractsToCompile?: string[];
// Dump all IR (Yul, EVMLA, LLVM IR, assembly) to files in the specified directory. Only for testing and debugging.
debugOutputDir?: string;
// Suppress specified warnings. Currently supported: txorigin, sendtransfer
// Suppress specified warnings. Currently supported: txorigin
suppressedWarnings?: string[];
// Suppress specified errors. Currently supported: txorigin, sendtransfer
// Suppress specified errors. Currently supported: assemblycreate, sendtransfer
suppressedErrors?: string[];
// Optional, zksolc: extra LLVM settings.
LLVMOptions?: string[];
// Can be "evmla" or "yul".In contract to solc, zksolc uses "Yul" codegen by default for solc v0.8.0 and newer.
codegen?: string;
};
}

Expand Down
2 changes: 2 additions & 0 deletions packages/hardhat-zksync-solc/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export function updateBreakableCompilerConfig(
compiler.settings.detectMissingLibraries = false;
compiler.settings.forceEVMLA = zksolc.settings.forceEVMLA;
compiler.settings.enableEraVMExtensions = zksolc.settings.enableEraVMExtensions;
compiler.settings.codegen = zksolc.settings.codegen;
compiler.settings.LLVMOptions = zksolc.settings.LLVMOptions;
}

solcUpdaters
Expand Down

0 comments on commit 9bc9abd

Please sign in to comment.