Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
enrique committed Dec 2, 2021
1 parent 27786f7 commit edb2d30
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion apps/indexer/lib/indexer/block/fetcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,13 @@ defmodule Indexer.Block.Fetcher do
defp add_celo_token_balances(celo_token, addresses, acc) do
Enum.reduce(addresses, acc, fn
%{fetched_coin_balance_block_number: bn, hash: hash}, acc ->
MapSet.put(acc, %{address_hash: hash, token_contract_address_hash: celo_token, block_number: bn, token_type: "ERC-20", token_id: nil})
MapSet.put(acc, %{
address_hash: hash,
token_contract_address_hash: celo_token,
block_number: bn,
token_type: "ERC-20",
token_id: nil
})

_, acc ->
acc
Expand Down
9 changes: 8 additions & 1 deletion apps/indexer/lib/indexer/fetcher/internal_transaction.ex
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,14 @@ defmodule Indexer.Fetcher.InternalTransaction do
defp add_gold_token_balances(gold_token, addresses, acc) do
Enum.reduce(addresses, acc, fn
%{fetched_coin_balance_block_number: bn, hash: hash}, acc ->
MapSet.put(acc, %{address_hash: decode(hash), token_contract_address_hash: decode(gold_token), block_number: bn, token_type: "ERC-20", token_id: nil})
MapSet.put(acc, %{
address_hash: decode(hash),
token_contract_address_hash: decode(gold_token),
block_number: bn,
token_type: "ERC-20",
token_id: nil
})

_, acc ->
acc
end)
Expand Down

0 comments on commit edb2d30

Please sign in to comment.