Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request blockscout#52 from celo-org/fix/error_addresses_array
Browse files Browse the repository at this point in the history
Mitigation error when a contract output is an array of addresses
  • Loading branch information
aaitor committed Dec 11, 2019
2 parents cab9d70 + 0981c43 commit 982ffa2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ defmodule BlockScoutWeb.SmartContractView do
addresses
|> Enum.map(&values(&1, "address"))
|> Enum.join(", ")
rescue
_ ->
""
end

def values(value, type) when type in ["address", "address payable"] do
Expand Down

0 comments on commit 982ffa2

Please sign in to comment.