Skip to content

Commit

Permalink
Fix no function clause matching in Integer.parse/2 (blockscout#9484)
Browse files Browse the repository at this point in the history
* Fix no function clause matching in Integer.parse/2

* Changelog
  • Loading branch information
nikitosing authored Feb 29, 2024
1 parent 0567d6f commit 5b3419a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

- [#9502](https://github.com/blockscout/blockscout/pull/9502) - Add batch_size and concurrency envs for tt token type migration
- [#9493](https://github.com/blockscout/blockscout/pull/9493) - Fix API response for unknown blob hashes
- [#9484](https://github.com/blockscout/blockscout/pull/9484) - Fix read contract error
- [#9426](https://github.com/blockscout/blockscout/pull/9426) - Fix tabs counter cache bug

### Chore
Expand Down
10 changes: 7 additions & 3 deletions apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/contract.ex
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,13 @@ defmodule EthereumJSONRPC.Contract do

defp convert_int_string_to_array_inner(arg) do
arg
|> Enum.map(fn el ->
{int, _} = Integer.parse(el)
int
|> Enum.map(fn
el when is_integer(el) ->
el

el ->
{int, _} = Integer.parse(el)
int
end)
end

Expand Down

0 comments on commit 5b3419a

Please sign in to comment.