This commit is contained in:
drethereum 2025-10-01 08:00:33 -06:00
parent 2bb8ee1e51
commit cd5c830fc5
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ WITH balances AS (
balance_hex,
CASE
WHEN LENGTH(balance_hex) <= 4300
AND balance_hex IS NOT NULL THEN utils.udf_hex_to_int(balance_hex) :: bigint
AND balance_hex IS NOT NULL THEN TRY_CAST(utils.udf_hex_to_int(balance_hex) AS bigint)
ELSE NULL
END AS balance_raw,
IFF(

View File

@ -23,9 +23,9 @@ WITH balances AS (
block_date,
address,
balance_hex,
utils.udf_hex_to_int(
TRY_CAST(utils.udf_hex_to_int(
balance_hex
) :: bigint AS balance_raw,
) AS bigint) AS balance_raw,
18 AS decimals,
utils.udf_decimal_adjust(
balance_raw,