Skip to content

Commit

Permalink
Set O1 optimization by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrom131 committed Oct 31, 2024
1 parent 755e538 commit c04dae6
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = {
skipFiles: [],
c: false,
json: false,
optimization: "O2",
optimization: "O1",
},
setupSettings: {
contributionSettings: {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solarity/hardhat-zkit",
"version": "0.4.11",
"version": "0.4.12",
"description": "The ultimate TypeScript environment for Circom development",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const defaultConfig: ZKitConfig = {
skipFiles: [],
c: false,
json: false,
optimization: undefined,
optimization: "O1",
},
setupSettings: {
contributionSettings: {
Expand Down
2 changes: 1 addition & 1 deletion src/types/zkit-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type CompilationSettings = FileFilterSettings & {
artifactsDir: string;
c: boolean;
json: boolean;
optimization?: "O0" | "O1" | "O2";
optimization: "O0" | "O1" | "O2";
};

export type SetupSettings = FileFilterSettings & {
Expand Down
2 changes: 1 addition & 1 deletion test/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const defaultCompileFlags: CompileFlags = {
c: false,
json: false,
O0: false,
O1: false,
O1: true,
O2: false,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const defaultConfig: HardhatUserConfig = {
circuitsDir: "circuits",
compilationSettings: {
skipFiles: ["vendor"],
optimization: "O1",
optimization: "O2",
},
setupSettings: {
ptauDir: "zkit/ptau",
Expand Down
4 changes: 2 additions & 2 deletions test/integration/setup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe("config", () => {
skipFiles: ["vendor"],
c: false,
json: false,
optimization: "O1",
optimization: "O2",
},
setupSettings: {
contributionSettings: {
Expand Down Expand Up @@ -72,7 +72,7 @@ describe("config", () => {
skipFiles: [],
c: false,
json: false,
optimization: undefined,
optimization: "O1",
},
setupSettings: {
contributionSettings: {
Expand Down

0 comments on commit c04dae6

Please sign in to comment.