-
Notifications
You must be signed in to change notification settings - Fork 997
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1574 from crytic/contract-error-selector
resolve error referenced as member of contract
- Loading branch information
Showing
28 changed files
with
163 additions
and
8 deletions.
There are no files selected for viewing
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
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
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" | ||
} | ||
} |
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