Skip to content

Commit

Permalink
🧉 Change assumption of default configuration of solc compiler (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp authored Oct 25, 2022
1 parent 118b270 commit b2424db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dry-dogs-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ethereum-mars": patch
---

🧉 Change assumption of default configuration of solc compiler
2 changes: 1 addition & 1 deletion packages/mars/src/verification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b2424db

Please sign in to comment.