fix: missing nil case for revert reason (#10136)

pull/10072/head
Kirill Fedoseev 6 months ago committed by GitHub
parent dc44b18030
commit f0f83d23d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 16
      apps/explorer/lib/explorer/chain/transaction.ex

@ -654,16 +654,16 @@ defmodule Explorer.Chain.Transaction do
end
def decoded_revert_reason(transaction, revert_reason, options \\ []) do
hex =
case revert_reason do
"0x" <> hex_part ->
hex_part
case revert_reason do
nil ->
nil
hex ->
hex
end
"0x" <> hex_part ->
process_hex_revert_reason(hex_part, transaction, options)
process_hex_revert_reason(hex, transaction, options)
hex ->
process_hex_revert_reason(hex, transaction, options)
end
end
@default_error_abi [

Loading…
Cancel
Save