-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2ea3fa
commit 8441a4b
Showing
14 changed files
with
96 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--no-import-callback no_import_callback/contract_1.sol |
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,6 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity >=0.0; | ||
|
||
import "contract_2.sol"; | ||
|
||
contract A {} |
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,4 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity >=0.0; | ||
|
||
contract B {} |
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,5 @@ | ||
Error: Source "contract_2.sol" not found: File reader callback is disabled. | ||
--> no_import_callback/contract_1.sol:4:1: | ||
| | ||
4 | import "contract_2.sol"; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ |
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 @@ | ||
1 |
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,4 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity >=0.0; | ||
|
||
contract B {} |
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 @@ | ||
--no-import-callback |
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 @@ | ||
{ | ||
"language": "Solidity", | ||
"sources": | ||
{ | ||
"A": | ||
{ | ||
"content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\nimport \"B.sol\"; contract A {}" | ||
} | ||
} | ||
} |
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,26 @@ | ||
{ | ||
"errors": | ||
[ | ||
{ | ||
"component": "general", | ||
"errorCode": "6275", | ||
"formattedMessage": "ParserError: Source \"B.sol\" not found: File reader callback is disabled. | ||
--> A:3:1: | ||
| | ||
3 | import \"B.sol\"; contract A {} | ||
| ^^^^^^^^^^^^^^^ | ||
|
||
", | ||
"message": "Source \"B.sol\" not found: File reader callback is disabled.", | ||
"severity": "error", | ||
"sourceLocation": | ||
{ | ||
"end": 74, | ||
"file": "A", | ||
"start": 59 | ||
}, | ||
"type": "ParserError" | ||
} | ||
], | ||
"sources": {} | ||
} |
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,6 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity >=0.0; | ||
|
||
import "contract_2.sol"; | ||
|
||
contract A {} |
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 @@ | ||
--allow-paths . --no-import-callback |
11 changes: 11 additions & 0 deletions
11
test/cmdlineTests/standard_no_import_callback_urls/input.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,11 @@ | ||
{ | ||
"language": "Solidity", | ||
"sources": { | ||
"A": { | ||
"urls": [ | ||
"standard_no_import_callback_urls/A.sol" | ||
] | ||
} | ||
}, | ||
"settings": {"outputSelection": {"*": { "*": ["metadata", "evm.bytecode"]}}} | ||
} |
13 changes: 13 additions & 0 deletions
13
test/cmdlineTests/standard_no_import_callback_urls/output.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,13 @@ | ||
{ | ||
"errors": | ||
[ | ||
{ | ||
"component": "general", | ||
"formattedMessage": "Cannot import url (\"standard_no_import_callback_urls/A.sol\"): File reader callback is disabled.", | ||
"message": "Cannot import url (\"standard_no_import_callback_urls/A.sol\"): File reader callback is disabled.", | ||
"severity": "error", | ||
"type": "IOError" | ||
} | ||
], | ||
"sources": {} | ||
} |
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