Change button link to the verification type selection page

pull/4945/head
nikitosing 3 years ago
parent 9073d47949
commit b15d6d0039
  1. 2
      .dialyzer-ignore
  2. 1
      CHANGELOG.md
  3. 16
      apps/block_scout_web/lib/block_scout_web/templates/address_contract/index.html.eex
  4. 14
      apps/block_scout_web/priv/gettext/default.pot
  5. 14
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po

@ -25,7 +25,7 @@ lib/explorer/exchange_rates/source.ex:110
lib/explorer/exchange_rates/source.ex:113
lib/explorer/smart_contract/solidity/verifier.ex:89
lib/block_scout_web/templates/address_contract/index.html.eex:156
lib/block_scout_web/templates/address_contract/index.html.eex:199
lib/block_scout_web/templates/address_contract/index.html.eex:193
lib/explorer/staking/stake_snapshotting.ex:15: Function do_snapshotting/7 has no local return
lib/explorer/staking/stake_snapshotting.ex:147
lib/explorer/third_party_integrations/sourcify.ex:70

@ -4,6 +4,7 @@
### Fixes
- [#4888](https://github.com/blockscout/blockscout/pull/4888) - Fix fetch_top_tokens method: add nulls last for token holders desc order
- [#4945](https://github.com/blockscout/blockscout/pull/4945) - Fix `Verify & Publish` button link
### Chore

@ -159,13 +159,7 @@
</div>
<% else %>
<%= if !fully_verified do %>
<% path =
if Application.get_env(:explorer, Explorer.ThirdPartyIntegrations.Sourcify)[:enabled] do
address_verify_contract_path(@conn, :new, @address.hash)
else
address_verify_contract_via_flattened_code_path(@conn, :new, @address.hash)
end
%>
<% path = address_verify_contract_path(@conn, :new, @address.hash) %>
<%= link(
gettext("Verify & Publish"),
to: path,
@ -202,13 +196,7 @@
</div>
<% else %>
<%= if !fully_verified and !creation_code(@address) do %>
<% path =
if Application.get_env(:explorer, Explorer.ThirdPartyIntegrations.Sourcify)[:enabled] do
address_verify_contract_path(@conn, :new, @address.hash)
else
address_verify_contract_via_flattened_code_path(@conn, :new, @address.hash)
end
%>
<% path = address_verify_contract_path(@conn, :new, @address.hash) %>
<%= link(
gettext("Verify & Publish"),
to: path,

@ -738,8 +738,8 @@ msgid "Copy Decompiled Contract Code"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract/index.html.eex:187
#: lib/block_scout_web/templates/address_contract/index.html.eex:197
#: lib/block_scout_web/templates/address_contract/index.html.eex:181
#: lib/block_scout_web/templates/address_contract/index.html.eex:191
msgid "Copy Deployed ByteCode"
msgstr ""
@ -944,8 +944,8 @@ msgid "Delegators’ Staked Amount"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract/index.html.eex:185
#: lib/block_scout_web/templates/address_contract/index.html.eex:193
#: lib/block_scout_web/templates/address_contract/index.html.eex:179
#: lib/block_scout_web/templates/address_contract/index.html.eex:187
msgid "Deployed ByteCode"
msgstr ""
@ -1130,7 +1130,7 @@ msgid "Export Data"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract/index.html.eex:234
#: lib/block_scout_web/templates/address_contract/index.html.eex:222
msgid "External libraries"
msgstr ""
@ -2900,8 +2900,8 @@ msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract/index.html.eex:24
#: lib/block_scout_web/templates/address_contract/index.html.eex:158 lib/block_scout_web/templates/address_contract/index.html.eex:170
#: lib/block_scout_web/templates/address_contract/index.html.eex:201 lib/block_scout_web/templates/address_contract/index.html.eex:213
#: lib/block_scout_web/templates/address_contract/index.html.eex:158 lib/block_scout_web/templates/address_contract/index.html.eex:164
#: lib/block_scout_web/templates/address_contract/index.html.eex:195 lib/block_scout_web/templates/address_contract/index.html.eex:201
#: lib/block_scout_web/templates/smart_contract/_functions.html.eex:13
msgid "Verify & Publish"
msgstr ""

@ -738,8 +738,8 @@ msgid "Copy Decompiled Contract Code"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract/index.html.eex:187
#: lib/block_scout_web/templates/address_contract/index.html.eex:197
#: lib/block_scout_web/templates/address_contract/index.html.eex:181
#: lib/block_scout_web/templates/address_contract/index.html.eex:191
msgid "Copy Deployed ByteCode"
msgstr ""
@ -944,8 +944,8 @@ msgid "Delegators’ Staked Amount"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract/index.html.eex:185
#: lib/block_scout_web/templates/address_contract/index.html.eex:193
#: lib/block_scout_web/templates/address_contract/index.html.eex:179
#: lib/block_scout_web/templates/address_contract/index.html.eex:187
msgid "Deployed ByteCode"
msgstr ""
@ -1130,7 +1130,7 @@ msgid "Export Data"
msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract/index.html.eex:234
#: lib/block_scout_web/templates/address_contract/index.html.eex:222
msgid "External libraries"
msgstr ""
@ -2900,8 +2900,8 @@ msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/address_contract/index.html.eex:24
#: lib/block_scout_web/templates/address_contract/index.html.eex:158 lib/block_scout_web/templates/address_contract/index.html.eex:170
#: lib/block_scout_web/templates/address_contract/index.html.eex:201 lib/block_scout_web/templates/address_contract/index.html.eex:213
#: lib/block_scout_web/templates/address_contract/index.html.eex:158 lib/block_scout_web/templates/address_contract/index.html.eex:164
#: lib/block_scout_web/templates/address_contract/index.html.eex:195 lib/block_scout_web/templates/address_contract/index.html.eex:201
#: lib/block_scout_web/templates/smart_contract/_functions.html.eex:13
msgid "Verify & Publish"
msgstr ""

Loading…
Cancel
Save