Update faq.md with an optimizer config workaround (#822)

pull/831/head
Shebin John 10 months ago committed by GitHub
parent bc54ef58ad
commit 9b64cbacd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      docs/faq.md

@ -110,6 +110,18 @@ Work-arounds for this problem are tracked below. (These are only available in ha
} }
``` ```
**Work-around #3**
+ Set the `.solcover.js` option: `configureYulOptimizer` to `true`.
+ Set the `.solcover.js` option: `solcOptimizerDetails` to:
```js
{
yul: true,
yulDetails: {
optimizerSteps: ""
},
}
```
## Notes on gas distortion ## Notes on gas distortion
Solidity-coverage instruments by injecting statements into your code, increasing its execution costs. Solidity-coverage instruments by injecting statements into your code, increasing its execution costs.

Loading…
Cancel
Save