Skip to content

Commit

Permalink
Fix redirect to checksummed address
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Feb 14, 2020
1 parent 7fefb6d commit fdf8b6a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@
- [#2834](https://github.com/poanetwork/blockscout/pull/2834) - always redirect to checksummed hash

### Fixes
- [#3009](https://github.com/poanetwork/blockscout/pull/3009) - Fix broken export to CSV
- [#3007](https://github.com/poanetwork/blockscout/pull/3007) - Fix copy UTF8 tx input action
- [#2996](https://github.com/poanetwork/blockscout/pull/2996) - Fix awesomplete lib loading in Firefox
- [#2993](https://github.com/poanetwork/blockscout/pull/2993) - Fix path definition for contract verification endpoint
Expand Down
Expand Up @@ -71,7 +71,7 @@

<div class="transaction-bottom-panel">
<div class="download-all-transactions">
Download <a class="download-all-transactions-link" href=<%= address_transaction_path(@conn, :transactions_csv, %{"address_id" => to_string(@address.hash)}) %>><%= gettext("CSV") %></span>
Download <a class="download-all-transactions-link" href=<%= address_transaction_path(@conn, :transactions_csv, %{"address_id" => Address.checksum(@address.hash)}) %>><%= gettext("CSV") %></span>
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16">
<path fill="#333333" fill-rule="evenodd" d="M13 16H1c-.999 0-1-1-1-1V1s-.004-1 1-1h6l7 7v8s-.032 1-1 1zm-1-8c0-.99-1-1-1-1H8s-1 .001-1-1V3c0-.999-1-1-1-1H2v12h10V8z"/>
</svg>
Expand Down
@@ -1,6 +1,8 @@
defmodule BlockScoutWeb.AddressTransactionView do
use BlockScoutWeb, :view

alias Explorer.Chain.{Address}

def format_current_filter(filter) do
case filter do
"to" -> gettext("To")
Expand Down
6 changes: 3 additions & 3 deletions apps/block_scout_web/priv/gettext/default.pot
Expand Up @@ -140,7 +140,7 @@ msgstr ""
#: lib/block_scout_web/templates/layout/_network_selector.html.eex:21
#: lib/block_scout_web/views/address_internal_transaction_view.ex:8
#: lib/block_scout_web/views/address_token_transfer_view.ex:8
#: lib/block_scout_web/views/address_transaction_view.ex:8
#: lib/block_scout_web/views/address_transaction_view.ex:10
msgid "All"
msgstr ""

Expand Down Expand Up @@ -712,7 +712,7 @@ msgstr ""
#: lib/block_scout_web/templates/address_transaction/index.html.eex:40
#: lib/block_scout_web/views/address_internal_transaction_view.ex:7
#: lib/block_scout_web/views/address_token_transfer_view.ex:7
#: lib/block_scout_web/views/address_transaction_view.ex:7
#: lib/block_scout_web/views/address_transaction_view.ex:9
msgid "From"
msgstr ""

Expand Down Expand Up @@ -855,7 +855,7 @@ msgstr ""
#: lib/block_scout_web/templates/address_transaction/index.html.eex:29
#: lib/block_scout_web/views/address_internal_transaction_view.ex:6
#: lib/block_scout_web/views/address_token_transfer_view.ex:6
#: lib/block_scout_web/views/address_transaction_view.ex:6
#: lib/block_scout_web/views/address_transaction_view.ex:8
msgid "To"
msgstr ""

Expand Down
6 changes: 3 additions & 3 deletions apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po
Expand Up @@ -140,7 +140,7 @@ msgstr ""
#: lib/block_scout_web/templates/layout/_network_selector.html.eex:21
#: lib/block_scout_web/views/address_internal_transaction_view.ex:8
#: lib/block_scout_web/views/address_token_transfer_view.ex:8
#: lib/block_scout_web/views/address_transaction_view.ex:8
#: lib/block_scout_web/views/address_transaction_view.ex:10
msgid "All"
msgstr ""

Expand Down Expand Up @@ -712,7 +712,7 @@ msgstr ""
#: lib/block_scout_web/templates/address_transaction/index.html.eex:40
#: lib/block_scout_web/views/address_internal_transaction_view.ex:7
#: lib/block_scout_web/views/address_token_transfer_view.ex:7
#: lib/block_scout_web/views/address_transaction_view.ex:7
#: lib/block_scout_web/views/address_transaction_view.ex:9
msgid "From"
msgstr ""

Expand Down Expand Up @@ -855,7 +855,7 @@ msgstr ""
#: lib/block_scout_web/templates/address_transaction/index.html.eex:29
#: lib/block_scout_web/views/address_internal_transaction_view.ex:6
#: lib/block_scout_web/views/address_token_transfer_view.ex:6
#: lib/block_scout_web/views/address_transaction_view.ex:6
#: lib/block_scout_web/views/address_transaction_view.ex:8
msgid "To"
msgstr ""

Expand Down

0 comments on commit fdf8b6a

Please sign in to comment.