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...") %>
</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" %>
<%=
link(

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

Loading…
Cancel
Save