diff --git a/CHANGELOG.md b/CHANGELOG.md index 18c5173146..e993db8ba1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ ## Current ### Features -- [#2292](https://github.com/poanetwork/blockscout/pull/2292), [#3356](https://github.com/poanetwork/blockscout/pull/3356), [#3360](https://github.com/poanetwork/blockscout/pull/3360) - Add Web UI for POSDAO Staking DApp +- [#2292](https://github.com/poanetwork/blockscout/pull/2292), [#3356](https://github.com/poanetwork/blockscout/pull/3356), [#3359](https://github.com/poanetwork/blockscout/pull/3359), [#3360](https://github.com/poanetwork/blockscout/pull/3360) - Add Web UI for POSDAO Staking DApp - [#3354](https://github.com/poanetwork/blockscout/pull/3354) - Tx hash in EOA coin balance history - [#3333](https://github.com/poanetwork/blockscout/pull/3333), [#3337](https://github.com/poanetwork/blockscout/pull/3337) - Dark forest contract custom theme - [#3330](https://github.com/poanetwork/blockscout/pull/3330) - Caching of address transactions counter, remove query 10_000 rows limit diff --git a/apps/explorer/lib/explorer/smart_contract/reader.ex b/apps/explorer/lib/explorer/smart_contract/reader.ex index 266c6c1828..ae1a287aad 100644 --- a/apps/explorer/lib/explorer/smart_contract/reader.ex +++ b/apps/explorer/lib/explorer/smart_contract/reader.ex @@ -415,19 +415,19 @@ defmodule Explorer.SmartContract.Reader do end defp new_value(%{"type" => "address"} = output, [value], _index) do - Map.put_new(output, "value", bytes_to_string(value)) + Map.put_new(output, "value", value) end defp new_value(%{"type" => :address} = output, [value], _index) do - Map.put_new(output, "value", bytes_to_string(value)) + Map.put_new(output, "value", value) end defp new_value(%{"type" => "address"} = output, values, index) do - Map.put_new(output, "value", bytes_to_string(Enum.at(values, index))) + Map.put_new(output, "value", Enum.at(values, index)) end defp new_value(%{"type" => :address} = output, values, index) do - Map.put_new(output, "value", bytes_to_string(Enum.at(values, index))) + Map.put_new(output, "value", Enum.at(values, index)) end defp new_value(%{"type" => "bytes" <> number_rest} = output, values, index) do diff --git a/apps/explorer/test/explorer/smart_contract/reader_test.exs b/apps/explorer/test/explorer/smart_contract/reader_test.exs index a1b356b9e1..d6b4ce5cc5 100644 --- a/apps/explorer/test/explorer/smart_contract/reader_test.exs +++ b/apps/explorer/test/explorer/smart_contract/reader_test.exs @@ -302,8 +302,7 @@ defmodule Explorer.SmartContract.ReaderTest do describe "link_outputs_and_values/2" do test "links the ABI outputs with the values retrieved from the blockchain" do blockchain_values = %{ - "getOwner" => - {:ok, <<105, 55, 203, 37, 235, 84, 188, 1, 59, 156, 19, 196, 122, 179, 142, 182, 62, 221, 20, 147>>} + "getOwner" => {:ok, "0x6937cb25eb54bc013b9c13c47ab38eb63edd1493"} } outputs = [%{"name" => "", "type" => "address"}]