Closed Rishabh42 closed 7 months ago
This looks related to https://github.com/crytic/crytic-compile/pull/420
Yup that's the one, thanks for confirming @0xalpharush Is there a more stable build of Slither, maybe an older version which I could use?
Slither was working fine previously when I had used it but that was a year ago
This is a weird quirk of a very old compiler version and the latest version of slither contains many bug fixes and improvements so it would not make sense to use an older one. You can get around this issue until we make a release by applying the following patch to the ENS codebase. Thanks for reporting the issue! Hope this helps
diff --git a/contracts/utils/DummyOldResolver.sol b/contracts/utils/DummyOldResolver.sol
index ed38225..678b07b 100644
--- a/contracts/utils/DummyOldResolver.sol
+++ b/contracts/utils/DummyOldResolver.sol
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
-pragma solidity 0.4.11;
+pragma solidity ^0.4.11;
contract DummyOldResolver {
function test() public returns (bool) {
diff --git a/hardhat.config.ts b/hardhat.config.ts
index 4909de8..c6fd64c 100644
--- a/hardhat.config.ts
+++ b/hardhat.config.ts
@@ -82,7 +82,7 @@ const config: HardhatUserConfig = {
},
// for DummyOldResolver contract
{
- version: '0.4.11',
+ version: '0.4.12',
settings: {
optimizer: {
enabled: true,
Thanks for the response @0xalpharush ! Could you please share the link of the 'ENS' code base? The 'ENS' that I know is this one: https://github.com/ensdomains/ens , but I don't think that's related to this issue
If you could please clarify this and I'll apply the patch at the right place and test it
Cheers
Describe the issue:
slither .
fails with the error: AttributeError: 'CryticCompile' object has no attribute 'asts'Same error occurring in the following operating systems:
Code example to reproduce the issue:
Running
slither .
after following the steps here: https://github.com/crytic/slitherVersion:
0.9.3
Relevant log output: