Add caluse for abi_decode_address_output/1 when is_nil(address)

pull/4038/head
Viktor Baranov 4 years ago
parent 30cb89cd04
commit 905bb1c3c1
  1. 1
      CHANGELOG.md
  2. 2
      apps/explorer/lib/explorer/chain.ex

@ -3,6 +3,7 @@
### Features
### Fixes
- [#4038](https://github.com/blockscout/blockscout/pull/4038) - Add clause for abi_decode_address_output/1 when is_nil(address)
- [#3989](https://github.com/blockscout/blockscout/pull/3989), [4061](https://github.com/blockscout/blockscout/pull/4061) - Fixed bug that sometimes lead to incorrect ordering of token transfers
- [#3946](https://github.com/blockscout/blockscout/pull/3946) - Get NFT metadata from URIs with status_code 301
- [#3888](https://github.com/blockscout/blockscout/pull/3888) - EIP-1967 contract proxy pattern detection fix

@ -6086,6 +6086,8 @@ defmodule Explorer.Chain do
end)
end
defp abi_decode_address_output(address) when is_nil(address), do: nil
defp abi_decode_address_output(address) do
if String.length(address) > 42 do
"0x" <> String.slice(address, -40, 40)

Loading…
Cancel
Save