mirror of https://github.com/crytic/slither
Merge pull request #1442 from crytic/medariox-patch-1
Fix detection of library eventspull/1460/head
commit
ef61ca67a5
Binary file not shown.
@ -0,0 +1,6 @@ |
||||
{ |
||||
"Lib": {}, |
||||
"Test": { |
||||
"foo()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,12 @@ |
||||
pragma solidity 0.8.16; |
||||
|
||||
library Lib { |
||||
event Event(); |
||||
} |
||||
|
||||
contract Test { |
||||
function foo() external { |
||||
emit Lib.Event(); // This line specifically |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue