How to modify solc settings when using slither as a library? #1826
Unanswered
webthethird
asked this question in
Q&A
Replies: 3 comments
|
How are you running slither on this contract? It works fine like |
0 replies
I downloaded the source code to my repo: |
0 replies
|
You will need to configure the project to use the same compiler settings as it uses on Etherscan as is done here https://github.com/crytic/crytic-compile/blob/10104f33f593ab82ba5780a5fe8dd26385acd1c1/crytic_compile/platform/etherscan.py#L326-L359 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
CryticCompile is raising an InvalidCompilation exception when trying to compile the Blur.io marketplace contract.
It seems related to the number of local variables used in some inline assembly. The longest block of inline assembly is in
BlurMarketplace.bulkExecute():I tried reducing it to the following, but to not avail:
So I've tried to remove local variables from the assembly block, as suggested by the error log output, but that didn't work. The alternative suggestion is compiling with the
--via-irflag, but I'm not sure how to do that when using Slither as a library.Code example to reproduce the issue:
https://etherscan.io/address/0x983e96c26782a8db500a6fb8ab47a52e1b44862d#code
Version:
0.9.3
Relevant log output:
All reactions