Merge pull request #8515 from blockscout/np-fix-decoding-error

Handle ':error.types/0 is undefined' error
pull/8536/head
Victor Baranov 1 year ago committed by GitHub
commit 104691ff65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 12
      apps/explorer/lib/explorer/chain/transaction.ex

@ -9,6 +9,7 @@
### Fixes
- [#8515](https://github.com/blockscout/blockscout/pull/8515) - Fix `:error.types/0 is undefined` warning
- [#7959](https://github.com/blockscout/blockscout/pull/7959) - Fix empty batch transfers handling
- [#8513](https://github.com/blockscout/blockscout/pull/8513) - Don't override transaction status

@ -756,12 +756,12 @@ defmodule Explorer.Chain.Transaction do
end
defp find_and_decode(abi, data, hash) do
result =
abi
|> ABI.parse_specification()
|> ABI.find_and_decode(data)
{:ok, result}
with {%FunctionSelector{}, _mapping} = result <-
abi
|> ABI.parse_specification()
|> ABI.find_and_decode(data) do
{:ok, result}
end
rescue
e ->
Logger.warn(fn ->

Loading…
Cancel
Save