mirror of https://github.com/crytic/slither
Improve function lookup for bytes (#1163)
* Improve function lookup for bytes * Update dapp test * blackpull/1177/head
parent
644f5e59a9
commit
741fc06ea8
@ -0,0 +1,17 @@ |
||||
contract Log{ |
||||
// Check that we can parse string/bytes |
||||
function f(bytes calldata) external{ |
||||
} |
||||
|
||||
function f(bytes4) external{ |
||||
} |
||||
} |
||||
|
||||
contract A{ |
||||
|
||||
Log l; |
||||
function test() internal{ |
||||
l.f("TESTA"); |
||||
} |
||||
} |
||||
|
Binary file not shown.
@ -0,0 +1,9 @@ |
||||
{ |
||||
"Log": { |
||||
"f(bytes)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n}\n", |
||||
"f(bytes4)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n}\n" |
||||
}, |
||||
"A": { |
||||
"test()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
Loading…
Reference in new issue