mirror of https://github.com/crytic/slither
Merge pull request #1568 from crytic/fix-usingfor-libraries
Fix using for directives in librariespull/1569/head
commit
8670f1753c
Binary file not shown.
@ -0,0 +1,8 @@ |
||||
{ |
||||
"A": { |
||||
"a(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: RETURN 1\n\"];\n}\n" |
||||
}, |
||||
"B": { |
||||
"b(uint256)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: RETURN 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,14 @@ |
||||
|
||||
library A { |
||||
using B for uint256; |
||||
|
||||
function a(uint256 v) public view returns (uint) { |
||||
return v.b(); |
||||
} |
||||
} |
||||
|
||||
library B { |
||||
function b(uint256 v) public view returns (uint) { |
||||
return 1; |
||||
} |
||||
} |
Loading…
Reference in new issue