Merge branch 'np-integrate-rust-verifier' of github.com:/poanetwork/blockscout into np-integrate-rust-verifier

pull/5860/head
Viktor Baranov 2 years ago
commit 6cace3c294
  1. 2
      apps/block_scout_web/lib/block_scout_web/templates/address_contract_verification_vyper/new.html.eex
  2. 4
      apps/explorer/lib/explorer/chain/smart_contract.ex

@ -44,7 +44,7 @@
> >
<%= render BlockScoutWeb.CommonComponentsView, "_loading_spinner.html", loading_text: gettext("Loading...") %> <%= render BlockScoutWeb.CommonComponentsView, "_loading_spinner.html", loading_text: gettext("Loading...") %>
</button> </button>
<%= submit gettext("Verify & publish"), class: "btn-full-primary mr-2", "data-button-loading": "animation" %> <%= submit gettext("Verify & publish"), class: "btn-full-primary mr-2", "data-button-loading": "animation", "data-submit-button": "" %>
<%= reset gettext("Reset"), class: "btn-line mr-2 js-smart-contract-form-reset" %> <%= reset gettext("Reset"), class: "btn-line mr-2 js-smart-contract-form-reset" %>
<%= <%=
link( link(

@ -449,8 +449,8 @@ defmodule Explorer.Chain.SmartContract do
%__MODULE__{is_vyper_contract: true} = twin_contract, %__MODULE__{is_vyper_contract: true} = twin_contract,
%Changeset{} = changeset %Changeset{} = changeset
) do ) do
twin_contract %__MODULE__{}
|> changeset(%{}) |> changeset(Map.from_struct(twin_contract))
|> Changeset.force_change(:address_hash, Changeset.get_field(changeset, :address_hash)) |> Changeset.force_change(:address_hash, Changeset.get_field(changeset, :address_hash))
end end

Loading…
Cancel
Save