diff --git a/.dialyzer-ignore b/.dialyzer-ignore index f21a6b5bab..bf2a526f58 100644 --- a/.dialyzer-ignore +++ b/.dialyzer-ignore @@ -21,7 +21,7 @@ lib/block_scout_web/views/layout_view.ex:142: The call 'Elixir.Poison.Parser':'p lib/block_scout_web/views/layout_view.ex:228: The call 'Elixir.Poison.Parser':'parse!' lib/block_scout_web/controllers/api/rpc/transaction_controller.ex:21 lib/block_scout_web/controllers/api/rpc/transaction_controller.ex:22 -lib/explorer/smart_contract/reader.ex:336 +lib/explorer/smart_contract/reader.ex:330 lib/indexer/fetcher/token_total_supply_on_demand.ex:16 lib/explorer/exchange_rates/source.ex:41 lib/explorer/exchange_rates/source/coin_gecko.ex:148 diff --git a/CHANGELOG.md b/CHANGELOG.md index 821e62a6c5..c9374fa40c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ### Fixes +- [#3376](https://github.com/poanetwork/blockscout/pull/3376) - Fix contract nested inputs - [#3375](https://github.com/poanetwork/blockscout/pull/3375) - Prevent terminating of tokens/contracts process - [#3374](https://github.com/poanetwork/blockscout/pull/3374) - Fix find block timestamp query - [#3373](https://github.com/poanetwork/blockscout/pull/3373) - Fix horizontal scroll in Tokens table diff --git a/apps/explorer/lib/explorer/smart_contract/reader.ex b/apps/explorer/lib/explorer/smart_contract/reader.ex index ae1a287aad..9503d2ccb4 100644 --- a/apps/explorer/lib/explorer/smart_contract/reader.ex +++ b/apps/explorer/lib/explorer/smart_contract/reader.ex @@ -266,17 +266,11 @@ defmodule Explorer.SmartContract.Reader do defp format_input_type(input_type) do case input_type do - {:array, {type, size}, array_size} -> - Atom.to_string(type) <> Integer.to_string(size) <> "[" <> Integer.to_string(array_size) <> "]" - {:array, type, array_size} -> - Atom.to_string(type) <> "[" <> Integer.to_string(array_size) <> "]" - - {:array, {type, size}} -> - Atom.to_string(type) <> Integer.to_string(size) <> "[]" + format_input_type(type) <> "[" <> Integer.to_string(array_size) <> "]" {:array, type} -> - Atom.to_string(type) <> "[]" + format_input_type(type) <> "[]" {type, size} -> Atom.to_string(type) <> Integer.to_string(size)