diff --git a/.changeset/dry-dogs-end.md b/.changeset/dry-dogs-end.md new file mode 100644 index 0000000..2171831 --- /dev/null +++ b/.changeset/dry-dogs-end.md @@ -0,0 +1,5 @@ +--- +"ethereum-mars": patch +--- + +🧉 Change assumption of default configuration of solc compiler diff --git a/packages/mars/src/verification.ts b/packages/mars/src/verification.ts index eb8f415..e5f743b 100644 --- a/packages/mars/src/verification.ts +++ b/packages/mars/src/verification.ts @@ -104,7 +104,7 @@ function getBlockExplorerContractAddress(address: string, network?: string) { async function getCompilerOptions(waffleConfigPath: string) { const config = JSON.parse(fs.readFileSync(waffleConfigPath).toString()) const compilerVersion = config.compilerVersion - const isOptimized = config.compilerOptions?.optimizer?.enabled ?? true + const isOptimized = config.compilerOptions?.optimizer?.enabled ?? false const optimizerRuns = !isOptimized ? 0 : config.compilerOptions?.optimizer?.runs ?? 200 return { compilerVersion,