forked from crytic/slither
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve error referenced as member of contract
- Loading branch information
1 parent
5323860
commit b189951
Showing
25 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+2.74 KB
tests/ast-parsing/compile/custom-error-selector.sol-0.8.10-compact.zip
Binary file not shown.
Binary file added
BIN
+2.74 KB
tests/ast-parsing/compile/custom-error-selector.sol-0.8.11-compact.zip
Binary file not shown.
Binary file added
BIN
+2.74 KB
tests/ast-parsing/compile/custom-error-selector.sol-0.8.12-compact.zip
Binary file not shown.
Binary file added
BIN
+2.75 KB
tests/ast-parsing/compile/custom-error-selector.sol-0.8.13-compact.zip
Binary file not shown.
Binary file added
BIN
+2.74 KB
tests/ast-parsing/compile/custom-error-selector.sol-0.8.14-compact.zip
Binary file not shown.
Binary file added
BIN
+2.75 KB
tests/ast-parsing/compile/custom-error-selector.sol-0.8.15-compact.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.72 KB
tests/ast-parsing/compile/custom-error-selector.sol-0.8.5-compact.zip
Binary file not shown.
Binary file added
BIN
+2.72 KB
tests/ast-parsing/compile/custom-error-selector.sol-0.8.6-compact.zip
Binary file not shown.
Binary file added
BIN
+2.72 KB
tests/ast-parsing/compile/custom-error-selector.sol-0.8.7-compact.zip
Binary file not shown.
Binary file added
BIN
+2.72 KB
tests/ast-parsing/compile/custom-error-selector.sol-0.8.8-compact.zip
Binary file not shown.
Binary file added
BIN
+2.73 KB
tests/ast-parsing/compile/custom-error-selector.sol-0.8.9-compact.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
contract Test { | ||
error myError(); | ||
} | ||
|
||
interface VM { | ||
function expectRevert(bytes4) external; | ||
function expectRevert(bytes calldata) external; | ||
} | ||
contract A { | ||
function b(address c) public { | ||
VM(c).expectRevert(Test.myError.selector); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.10-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.11-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.12-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.13-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.14-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.15-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.4-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.5-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.6-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.7-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.8-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/ast-parsing/expected/custom-error-selector.sol-0.8.9-compact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"Test": {}, | ||
"VM": { | ||
"expectRevert(bytes4)": "digraph{\n}\n", | ||
"expectRevert(bytes)": "digraph{\n}\n" | ||
}, | ||
"A": { | ||
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n" | ||
} | ||
} |