Merge pull request #4038 from blockscout/vb-fix-verified-contract-page

Add clause for abi_decode_address_output/1 when is_nil(address)
pull/4063/head
Victor Baranov 4 years ago committed by GitHub
commit c7a20f6a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/explorer/lib/explorer/chain.ex

@ -3,6 +3,7 @@
### Features ### Features
### Fixes ### 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 - [#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 - [#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 - [#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)
end end
defp abi_decode_address_output(address) when is_nil(address), do: nil
defp abi_decode_address_output(address) do defp abi_decode_address_output(address) do
if String.length(address) > 42 do if String.length(address) > 42 do
"0x" <> String.slice(address, -40, 40) "0x" <> String.slice(address, -40, 40)

Loading…
Cancel
Save