mirror of https://github.com/crytic/slither
Merge pull request #2370 from crytic/fix/support-alias-NewContract
fix: support aliases for NewContract operationpull/2385/head
commit
ef1fd7ebbf
@ -0,0 +1 @@ |
||||
contract MyContract {} |
@ -0,0 +1,8 @@ |
||||
import {MyContract as MyAliasedContract} from "./MyContract.sol"; |
||||
|
||||
contract Test { |
||||
MyAliasedContract c; |
||||
constructor() { |
||||
c = new MyAliasedContract(); |
||||
} |
||||
} |
@ -0,0 +1,9 @@ |
||||
|
||||
import "./MyContract.sol" as MyAliasedContract; |
||||
|
||||
contract Test { |
||||
MyAliasedContract.MyContract c; |
||||
constructor() { |
||||
c = new MyAliasedContract.MyContract(); |
||||
} |
||||
} |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,6 @@ |
||||
{ |
||||
"MyContract": {}, |
||||
"Test": { |
||||
"constructor()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,6 @@ |
||||
{ |
||||
"MyContract": {}, |
||||
"Test": { |
||||
"constructor()": "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