Update evm version tests responces

pull/1964/head
Victor Baranov 6 years ago
parent 2b686ab408
commit 8866c1bef1
  1. 4
      apps/explorer/test/explorer/smart_contract/solidity/code_compiler_test.exs

@ -278,13 +278,13 @@ defmodule Explorer.SmartContract.Solidity.CodeCompilerTest do
Application.put_env(:explorer, :allowed_evm_versions, @allowed_evm_versions_pattern) Application.put_env(:explorer, :allowed_evm_versions, @allowed_evm_versions_pattern)
response = CodeCompiler.allowed_evm_versions() response = CodeCompiler.allowed_evm_versions()
assert response = @allowed_evm_versions_pattern assert response = ["CustomEVM1", "CustomEVM2", "CustomEVM3"]
end end
test "returns default_allowed_evm_versions" do test "returns default_allowed_evm_versions" do
Application.put_env(:explorer, :allowed_evm_versions, @allowed_evm_versions_default) Application.put_env(:explorer, :allowed_evm_versions, @allowed_evm_versions_default)
response = CodeCompiler.allowed_evm_versions() response = CodeCompiler.allowed_evm_versions()
assert response = @allowed_evm_versions_default assert response = ["homestead", "tangerineWhistle", "spuriousDragon", "byzantium", "constantinople", "petersburg"]
end end
end end

Loading…
Cancel
Save