From fd566474a6f5fe82892ddfd18fcde65429b96c56 Mon Sep 17 00:00:00 2001 From: drethereum <71602799+drethereum@users.noreply.github.com> Date: Tue, 25 Feb 2025 14:38:19 -0700 Subject: [PATCH] fix/decoded-traces-history (#1025) traces ref --- macros/decoder/decoded_traces_history.sql | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/macros/decoder/decoded_traces_history.sql b/macros/decoder/decoded_traces_history.sql index 3140c527..70b3be52 100644 --- a/macros/decoder/decoded_traces_history.sql +++ b/macros/decoder/decoded_traces_history.sql @@ -33,10 +33,11 @@ '-', t.block_number, t.tx_position, - t.identifier + t.type, + t.trace_address ) AS _call_id FROM - {{ ref('silver__traces') }} + {{ ref('core__fact_traces') }} t INNER JOIN {{ ref('silver__flat_function_abis') }} f @@ -147,11 +148,12 @@ '-', t.block_number, t.tx_position, - t.identifier + t.type, + t.trace_address ) AS _call_id FROM target_blocks - INNER JOIN {{ ref('silver__traces') }} + INNER JOIN {{ ref('core__fact_traces') }} t WHERE block_number BETWEEN min_block_number