Skip to content

Commit b2424db

Browse files
authored
🧉 Change assumption of default configuration of solc compiler (#126)
1 parent 118b270 commit b2424db

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/dry-dogs-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ethereum-mars": patch
3+
---
4+
5+
🧉 Change assumption of default configuration of solc compiler

packages/mars/src/verification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function getBlockExplorerContractAddress(address: string, network?: string) {
104104
async function getCompilerOptions(waffleConfigPath: string) {
105105
const config = JSON.parse(fs.readFileSync(waffleConfigPath).toString())
106106
const compilerVersion = config.compilerVersion
107-
const isOptimized = config.compilerOptions?.optimizer?.enabled ?? true
107+
const isOptimized = config.compilerOptions?.optimizer?.enabled ?? false
108108
const optimizerRuns = !isOptimized ? 0 : config.compilerOptions?.optimizer?.runs ?? 200
109109
return {
110110
compilerVersion,

0 commit comments

Comments
 (0)