-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Conversation
Coverage would be nice... |
Thoughts on this: Including My reasoning is that:
Including this because I already wrote it: (maybe it provides clarity?) compilers: {
"<whatever-compiler>": { // this object should be agnostic to language
version: "...",
/* anotherTruffleGenericSetting: "..." */
settings: { // a pseudo "black box"
/* compilerSpecificSetting: "..." */
}
} |
So I'm understanding that the optimizer settings are going to go under |
Ah, thanks for spotting that @eggplantzzz . pushed the wrong file 😆 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to take or leave my suggestion!
b990120
to
f77c72c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooh this looks great! nice test improvements
Bug Fix
As noted in #1452, there is a mismatch between the documentation for BYOC/V5 and the way
compilers.solc
is handled in the codebase. This would cause user-configured compiler settings likeoptimizer
,runs
, andevmVersion
to be omitted and use the default Config values instead.New Expected Behavior
Using a new BYOC/V5 format (example below) will use the solc values specified and result in optimized code.
This will also work:
The V4 solc format (example below) is also still supported.
as well as: