Fix contract reader

pull/3097/head
Victor Baranov 5 years ago
parent 704637f239
commit e95e13d17a
  1. 1
      CHANGELOG.md
  2. 6
      apps/explorer/lib/explorer/smart_contract/reader.ex

@ -8,6 +8,7 @@
- [#3065](https://github.com/poanetwork/blockscout/pull/3065) - Transactions history chart
### Fixes
- [#3097](https://github.com/poanetwork/blockscout/pull/3097) - Fix contract reader decoding
- [#3095](https://github.com/poanetwork/blockscout/pull/3095) - Fix constructor arguments decoding
- [#3092](https://github.com/poanetwork/blockscout/pull/3092) - Contract verification: constructor arguments search search refinement
- [#3077](https://github.com/poanetwork/blockscout/pull/3077) - Finally speedup pending tx list

@ -292,6 +292,10 @@ defmodule Explorer.SmartContract.Reader do
@spec bytes_to_string(<<_::_*8>>) :: String.t()
defp bytes_to_string(value) do
Hash.to_string(%Hash{byte_count: byte_size(value), bytes: value})
if value do
Hash.to_string(%Hash{byte_count: byte_size(value), bytes: value})
else
"0x"
end
end
end

Loading…
Cancel
Save