|
|
@ -272,12 +272,9 @@ defmodule Explorer.SmartContract.Solidity.CodeCompilerTest do |
|
|
|
|
|
|
|
|
|
|
|
describe "allowed_evm_versions/0" do |
|
|
|
describe "allowed_evm_versions/0" do |
|
|
|
@allowed_evm_versions_pattern '[ |
|
|
|
@allowed_evm_versions_pattern '[ |
|
|
|
"homestead", |
|
|
|
"CustomEVM1", |
|
|
|
"tangerineWhistle", |
|
|
|
"CustomEVM2", |
|
|
|
"spuriousDragon", |
|
|
|
"CustomEVM3" |
|
|
|
"byzantium", |
|
|
|
|
|
|
|
"constantinople", |
|
|
|
|
|
|
|
"petersburg2" |
|
|
|
|
|
|
|
]' |
|
|
|
]' |
|
|
|
|
|
|
|
|
|
|
|
test "returns default_allowed_evm_versions" do |
|
|
|
test "returns default_allowed_evm_versions" do |
|
|
@ -290,12 +287,9 @@ defmodule Explorer.SmartContract.Solidity.CodeCompilerTest do |
|
|
|
response = CodeCompiler.allowed_evm_versions() |
|
|
|
response = CodeCompiler.allowed_evm_versions() |
|
|
|
|
|
|
|
|
|
|
|
assert response = [ |
|
|
|
assert response = [ |
|
|
|
"homestead", |
|
|
|
"CustomEVM1", |
|
|
|
"tangerineWhistle", |
|
|
|
"CustomEVM2", |
|
|
|
"spuriousDragon", |
|
|
|
"CustomEVM3" |
|
|
|
"byzantium", |
|
|
|
|
|
|
|
"constantinople", |
|
|
|
|
|
|
|
"petersburg2" |
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|