Skip to content

Commit

Permalink
Merge pull request #1432 from zmcNotafraid/issue-1430-2
Browse files Browse the repository at this point in the history
fix: eth_call returns interger
  • Loading branch information
zmcNotafraid committed May 11, 2023
2 parents 82b6c33 + 72ff3b1 commit 5eb7f94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule GodwokenIndexer.Worker.GenerateYokSeriesContract do
Repo.get(Account, account_id),
udt when is_nil(udt) <- Repo.get(UDT, account_id),
smart_contract when is_nil(smart_contract) <- Repo.get(SmartContract, account_id),
{:ok, decimal} <- UDT.eth_call_decimal(account.eth_address) do
decimal when not is_nil(decimal) <- UDT.eth_call_decimal(account.eth_address) do
supply = UDT.eth_call_total_supply(account.eth_address)
name = UDT.eth_call_name(account.eth_address)
symbol = UDT.eth_call_symbol(account.eth_address)
Expand Down

0 comments on commit 5eb7f94

Please sign in to comment.