forked from ethereum/solidity
-
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.
Issue a deprecation warning for byzantium and older EVM versions
- Loading branch information
Showing
27 changed files
with
151 additions
and
5 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
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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
Warning: Support for EVM versions older than constantinople is deprecated and will be removed in the future. | ||
Error: Failed to import AST: Imported tree evm version differs from configured evm version! |
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 @@ | ||
--evm-version byzantium |
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,3 @@ | ||
Warning: Support for EVM versions older than constantinople is deprecated and will be removed in the future. | ||
Warning: Source file does not specify required compiler version! | ||
--> evm_version_byzantium/input.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 @@ | ||
// SPDX-License-Identifier: GPL-3.0 |
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 @@ | ||
--evm-version constantinople |
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,2 @@ | ||
Warning: Source file does not specify required compiler version! | ||
--> evm_version_constantinople/input.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 @@ | ||
// SPDX-License-Identifier: GPL-3.0 |
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,9 @@ | ||
{ | ||
"language": "Solidity", | ||
"sources": { | ||
"input.sol": {"content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity *;"} | ||
}, | ||
"settings": { | ||
"evmVersion": "byzantium" | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
test/cmdlineTests/standard_evm_version_byzantium/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,19 @@ | ||
{ | ||
"errors": | ||
[ | ||
{ | ||
"component": "general", | ||
"formattedMessage": "Support for EVM versions older than constantinople is deprecated and will be removed in the future.", | ||
"message": "Support for EVM versions older than constantinople is deprecated and will be removed in the future.", | ||
"severity": "warning", | ||
"type": "Warning" | ||
} | ||
], | ||
"sources": | ||
{ | ||
"input.sol": | ||
{ | ||
"id": 0 | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
test/cmdlineTests/standard_evm_version_constantinople/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,9 @@ | ||
{ | ||
"language": "Solidity", | ||
"sources": { | ||
"input.sol": {"content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity *;"} | ||
}, | ||
"settings": { | ||
"evmVersion": "constantinople" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
test/cmdlineTests/standard_evm_version_constantinople/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,9 @@ | ||
{ | ||
"sources": | ||
{ | ||
"input.sol": | ||
{ | ||
"id": 0 | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
test/cmdlineTests/standard_missing_key_useLiteralContent/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
9 changes: 9 additions & 0 deletions
9
test/cmdlineTests/standard_yul_evm_version_byzantium/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,9 @@ | ||
{ | ||
"language": "Yul", | ||
"sources": { | ||
"input.yul": {"content": "{}"} | ||
}, | ||
"settings": { | ||
"evmVersion": "byzantium" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
test/cmdlineTests/standard_yul_evm_version_byzantium/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,12 @@ | ||
{ | ||
"errors": | ||
[ | ||
{ | ||
"component": "general", | ||
"formattedMessage": "Support for EVM versions older than constantinople is deprecated and will be removed in the future.", | ||
"message": "Support for EVM versions older than constantinople is deprecated and will be removed in the future.", | ||
"severity": "warning", | ||
"type": "Warning" | ||
} | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
test/cmdlineTests/standard_yul_evm_version_constantinople/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,9 @@ | ||
{ | ||
"language": "Yul", | ||
"sources": { | ||
"input.yul": {"content": "{}"} | ||
}, | ||
"settings": { | ||
"evmVersion": "constantinople" | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
test/cmdlineTests/standard_yul_evm_version_constantinople/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,2 @@ | ||
{ | ||
} |
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 @@ | ||
--strict-assembly --evm-version byzantium |
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 @@ | ||
Warning: Support for EVM versions older than constantinople is deprecated and will be removed in the future. |
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 @@ | ||
{} |
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,15 @@ | ||
|
||
======= strict_asm_evm_version_byzantium/input.yul (EVM) ======= | ||
|
||
Pretty printed source: | ||
object "object" { | ||
code { { } } | ||
} | ||
|
||
|
||
Binary representation: | ||
00 | ||
|
||
Text representation: | ||
/* "strict_asm_evm_version_byzantium/input.yul":0:2 */ | ||
stop |
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 @@ | ||
--strict-assembly --evm-version constantinople |
1 change: 1 addition & 0 deletions
1
test/cmdlineTests/strict_asm_evm_version_constantinople/input.yul
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 @@ | ||
{} |
15 changes: 15 additions & 0 deletions
15
test/cmdlineTests/strict_asm_evm_version_constantinople/output
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,15 @@ | ||
|
||
======= strict_asm_evm_version_constantinople/input.yul (EVM) ======= | ||
|
||
Pretty printed source: | ||
object "object" { | ||
code { { } } | ||
} | ||
|
||
|
||
Binary representation: | ||
00 | ||
|
||
Text representation: | ||
/* "strict_asm_evm_version_constantinople/input.yul":0:2 */ | ||
stop |