From d91ce12faea7a323998be35dcaf3815e876302e5 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Wed, 22 Jul 2020 18:09:49 +0300 Subject: [PATCH] Fix view for read contract --- apps/block_scout_web/assets/css/_helpers.scss | 4 ++++ .../templates/smart_contract/_functions.html.eex | 2 +- apps/explorer/lib/explorer/smart_contract/reader.ex | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/block_scout_web/assets/css/_helpers.scss b/apps/block_scout_web/assets/css/_helpers.scss index f6e6669dda..47338f1331 100644 --- a/apps/block_scout_web/assets/css/_helpers.scss +++ b/apps/block_scout_web/assets/css/_helpers.scss @@ -33,3 +33,7 @@ .hidden { display: none!important; } + +.word-break-all { + word-break: break-all; +} diff --git a/apps/block_scout_web/lib/block_scout_web/templates/smart_contract/_functions.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/smart_contract/_functions.html.eex index be83b63ca1..169f1b61ce 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/smart_contract/_functions.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/smart_contract/_functions.html.eex @@ -60,7 +60,7 @@
<% else %> - + <%= if outputs?(function["outputs"]) do %> <%= for output <- function["outputs"] do %> <%= if address?(output["type"]) do %> diff --git a/apps/explorer/lib/explorer/smart_contract/reader.ex b/apps/explorer/lib/explorer/smart_contract/reader.ex index de04329147..a3bcfeb9df 100644 --- a/apps/explorer/lib/explorer/smart_contract/reader.ex +++ b/apps/explorer/lib/explorer/smart_contract/reader.ex @@ -330,7 +330,9 @@ defmodule Explorer.SmartContract.Reader do bytes_to_string(value) end) - Map.put_new(output, "value", values_array_formatted) + values_array_formatted_3 = values_array_formatted ++ values_array_formatted ++ values_array_formatted + + Map.put_new(output, "value", values_array_formatted_3) else Map.put_new(output, "value", bytes_to_string(Enum.at(values, index))) end