fix view test

pull/1547/head
Ayrat Badykov 6 years ago
parent 0f8d3a9d9a
commit 0e895f95f7
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 2
      apps/block_scout_web/lib/block_scout_web/controllers/address_contract_verification_controller.ex
  2. 6
      apps/block_scout_web/lib/block_scout_web/templates/address_contract_verification/new.html.eex
  3. 3
      apps/block_scout_web/test/block_scout_web/features/address_contract_verification_test.exs
  4. 3
      apps/block_scout_web/test/support/fixture/smart_contract/solc_bin.json

@ -36,7 +36,7 @@ defmodule BlockScoutWeb.AddressContractVerificationController do
{:error, changeset} -> {:error, changeset} ->
{:ok, compiler_versions} = CompilerVersion.fetch_versions() {:ok, compiler_versions} = CompilerVersion.fetch_versions()
render(conn, "new.html", changeset: changeset, compiler_versions: compiler_versions) render(conn, "new.html", changeset: changeset, compiler_versions: compiler_versions, evm_versions: @evm_versions)
end end
end end
end end

@ -23,13 +23,13 @@
<div class="form-group mb-4"> <div class="form-group mb-4">
<%= label f, :compiler_version, gettext("Compiler") %> <%= label f, :compiler_version, gettext("Compiler") %>
<%= select f, :compiler_version, @compiler_versions, class: "form-control", selected: "byzantium", "aria-describedby": "evm-version-help-block" %> <%= select f, :compiler_version, @compiler_versions, class: "form-control", selected: "latest", "aria-describedby": "compiler-help-block" %>
<%= error_tag f, :compiler_version, id: "evm-version-help-block", class: "text-danger" %> <%= error_tag f, :compiler_version, id: "compiler-help-block", class: "text-danger" %>
</div> </div>
<div class="form-group"> <div class="form-group">
<%= label :evm_version, :evm_version, gettext("EVM Vesion") %> <%= label :evm_version, :evm_version, gettext("EVM Vesion") %>
<%= select :evm_version, :evm_version, @evm_versions, class: "form-control", selected: "latest", "aria-describedby": "compiler-help-block" %> <%= select :evm_version, :evm_version, @evm_versions, class: "form-control", selected: "byzantium", "aria-describedby": "evm-version-help-block" %>
</div> </div>
<div class="form-group mb-4"> <div class="form-group mb-4">

@ -36,8 +36,7 @@ defmodule BlockScoutWeb.AddressContractVerificationTest do
contract_name: name, contract_name: name,
version: version, version: version,
optimization: false, optimization: false,
source_code: source_code, source_code: source_code
evm_version: "byzantium"
}) })
|> ContractVerifyPage.verify_and_publish() |> ContractVerifyPage.verify_and_publish()

@ -1,6 +1,3 @@
// 20190311153836
// https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/list.json
{ {
"builds": [ "builds": [
{ {

Loading…
Cancel
Save