From e39da64647ad718ec19c9d50e59f8e434a1de8c4 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Thu, 23 May 2019 15:46:41 +0300 Subject: [PATCH] temporarily remove evm versions tests --- .../solidity/code_compiler_test.exs | 42 +++++++++---------- .../explorer/smart_contract/verifier_test.exs | 2 - 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs b/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs index 0f5ac79cad..be68a03a0e 100644 --- a/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs +++ b/apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs @@ -310,33 +310,33 @@ defmodule Explorer.SmartContract.Solidity.CodeCompilerTest do end end - describe "allowed_evm_versions/0" do - test "returns allowed evm versions defined by ALLOWED_EVM_VERSIONS env var" do - Application.put_env(:explorer, :allowed_evm_versions, "CustomEVM1,CustomEVM2,CustomEVM3") - response = CodeCompiler.allowed_evm_versions() + # describe "allowed_evm_versions/0" do + # test "returns allowed evm versions defined by ALLOWED_EVM_VERSIONS env var" do + # Application.put_env(:explorer, :allowed_evm_versions, "CustomEVM1,CustomEVM2,CustomEVM3") + # response = CodeCompiler.allowed_evm_versions() - assert ["CustomEVM1", "CustomEVM2", "CustomEVM3"] = response - end + # assert ["CustomEVM1", "CustomEVM2", "CustomEVM3"] = response + # end - test "returns allowed evm versions defined by not trimmed ALLOWED_EVM_VERSIONS env var" do - Application.put_env(:explorer, :allowed_evm_versions, "CustomEVM1, CustomEVM2, CustomEVM3") - response = CodeCompiler.allowed_evm_versions() + # test "returns allowed evm versions defined by not trimmed ALLOWED_EVM_VERSIONS env var" do + # Application.put_env(:explorer, :allowed_evm_versions, "CustomEVM1, CustomEVM2, CustomEVM3") + # response = CodeCompiler.allowed_evm_versions() - assert ["CustomEVM1", "CustomEVM2", "CustomEVM3"] = response - end + # assert ["CustomEVM1", "CustomEVM2", "CustomEVM3"] = response + # end - test "returns default_allowed_evm_versions" do - Application.put_env( - :explorer, - :allowed_evm_versions, - "homestead,tangerineWhistle,spuriousDragon,byzantium,constantinople,petersburg" - ) + # test "returns default_allowed_evm_versions" do + # Application.put_env( + # :explorer, + # :allowed_evm_versions, + # "homestead,tangerineWhistle,spuriousDragon,byzantium,constantinople,petersburg" + # ) - response = CodeCompiler.allowed_evm_versions() + # response = CodeCompiler.allowed_evm_versions() - assert ["homestead", "tangerineWhistle", "spuriousDragon", "byzantium", "constantinople", "petersburg"] = response - end - end + # assert ["homestead", "tangerineWhistle", "spuriousDragon", "byzantium", "constantinople", "petersburg"] = response + # end + # end defp remove_init_data_and_whisper_data(code) do {res, _} = diff --git a/apps/explorer/test/explorer/smart_contract/verifier_test.exs b/apps/explorer/test/explorer/smart_contract/verifier_test.exs index 916453fafc..ef635c2573 100644 --- a/apps/explorer/test/explorer/smart_contract/verifier_test.exs +++ b/apps/explorer/test/explorer/smart_contract/verifier_test.exs @@ -21,7 +21,6 @@ defmodule Explorer.SmartContract.VerifierTest do "contract_source_code" => contract_code_info.source_code, "compiler_version" => contract_code_info.version, "name" => contract_code_info.name, - "evm_version" => "petersburg", "optimization" => contract_code_info.optimized } @@ -69,7 +68,6 @@ defmodule Explorer.SmartContract.VerifierTest do "compiler_version" => contract_code_info.version, "name" => contract_code_info.name, "optimization" => contract_code_info.optimized, - "evm_version" => "petersburg", "constructor_arguments" => constructor_arguments }