make slither always wrong, give a hand please. #333
zhongguoliliang
started this conversation in
General
Replies: 1 comment 4 replies
-
@PatrickAlphaC, we could use some help here, sir. |
Beta Was this translation helpful? Give feedback.
4 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.
-
'''slither . --config-file slither.config.json
'forge build --extra-output abi --extra-output userdoc --extra-output devdoc --extra-output evm.methodIdentifiers --force' running
Compiling 42 files with 0.8.20
Solc 0.8.20 finished in 5.14s
Compiler run successful with warnings:
Warning (2018): Function state mutability can be restricted to view
--> test/L1TokenBridge.t.sol:42:5:
|
42 | function testDeployerOwnsBridge() public {
| ^ (Relevant source part starts here and spans across multiple lines).
Warning (2018): Function state mutability can be restricted to view
--> test/L1TokenBridge.t.sol:47:5:
|
47 | function testBridgeOwnsVault() public {
| ^ (Relevant source part starts here and spans across multiple lines).
Warning (2018): Function state mutability can be restricted to view
--> test/L1TokenBridge.t.sol:52:5:
|
52 | function testTokenIsSetInBridgeAndVault() public {
| ^ (Relevant source part starts here and spans across multiple lines).
Warning (2018): Function state mutability can be restricted to view
--> test/L1TokenBridge.t.sol:57:5:
|
57 | function testVaultInfiniteAllowanceToBridge() public {
| ^ (Relevant source part starts here and spans across multiple lines).
Warning (2018): Function state mutability can be restricted to view
--> test/L1TokenBridge.t.sol:91:5:
|
91 | function testInitialSignerWasRegistered() public {
| ^ (Relevant source part starts here and spans across multiple lines).
No contract were found in None, check the correct compilation
solc-0.8.20 is not recommended for deployment
Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#incorrect-versions-of-solidity
No contract was analyzed
. analyzed (0 contracts with 77 detectors), 1 result(s) found
make: *** [slither] Error 1'''
When I run make slither,It always show the error above.I ask chatgpt, but can not give me a right answer. What should I do ,give me some guide , thank you.
Beta Was this translation helpful? Give feedback.
All reactions