Contract interaction: xix encoding of bytes output

pull/3347/head
Victor Baranov 4 years ago
parent 2891ef71ae
commit 35cbcfcc38
  1. 1
      CHANGELOG.md
  2. 4
      apps/explorer/lib/explorer/smart_contract/reader.ex

@ -6,6 +6,7 @@
### Fixes ### Fixes
- [#3347](https://github.com/poanetwork/blockscout/pull/3347) - Contract interaction: fix encoding of bytes output
- [#3346](https://github.com/poanetwork/blockscout/pull/3346) - Fix inventory tab pagination - [#3346](https://github.com/poanetwork/blockscout/pull/3346) - Fix inventory tab pagination
- [#3344](https://github.com/poanetwork/blockscout/pull/3344) - Fix logs search on address page - [#3344](https://github.com/poanetwork/blockscout/pull/3344) - Fix logs search on address page
- [#3342](https://github.com/poanetwork/blockscout/pull/3342) - Fix mobile styles for contract code tab - [#3342](https://github.com/poanetwork/blockscout/pull/3342) - Fix mobile styles for contract code tab

@ -449,6 +449,10 @@ defmodule Explorer.SmartContract.Reader do
Map.put_new(output, "value", bytes_to_string(Enum.at(values, index))) Map.put_new(output, "value", bytes_to_string(Enum.at(values, index)))
end end
defp new_value(%{"type" => :bytes} = output, values, index) do
Map.put_new(output, "value", bytes_to_string(Enum.at(values, index)))
end
defp new_value(output, [value], _index) do defp new_value(output, [value], _index) do
Map.put_new(output, "value", value) Map.put_new(output, "value", value)
end end

Loading…
Cancel
Save