How to modify solc settings when using slither as a library? #1826
Replies: 3 comments
-
How are you running slither on this contract? It works fine like |
Beta Was this translation helpful? Give feedback.
-
I downloaded the source code to my repo: |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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-ir
flag, 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:
Beta Was this translation helpful? Give feedback.
All reactions