From c411ea680766dadb96a7e3921ae6aeae84e96440 Mon Sep 17 00:00:00 2001 From: Carl Cervone <42869436+ccerv1@users.noreply.github.com> Date: Sun, 2 Jun 2024 14:56:58 -0400 Subject: [PATCH] fix: replaces to_ with from_ address (#1572) --- .../dbt/macros/models/contract_invocation_events_with_l1.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warehouse/dbt/macros/models/contract_invocation_events_with_l1.sql b/warehouse/dbt/macros/models/contract_invocation_events_with_l1.sql index eda34fe3b..21f4e051c 100644 --- a/warehouse/dbt/macros/models/contract_invocation_events_with_l1.sql +++ b/warehouse/dbt/macros/models/contract_invocation_events_with_l1.sql @@ -17,7 +17,7 @@ all_transactions as ( LOWER(transactions.to_address) as to_artifact_name, "CONTRACT" as to_artifact_type, LOWER(transactions.to_address) as to_artifact_source_id, - COALESCE(to_artifacts.artifact_id, {{ oso_id("'%s'" % upper_network_name, "transactions.from_address") }}) as from_artifact_id, + COALESCE(from_artifacts.artifact_id, {{ oso_id("'%s'" % upper_network_name, "transactions.from_address") }}) as from_artifact_id, LOWER(transactions.from_address) as from_artifact_name, "EOA" as from_artifact_type, LOWER(transactions.from_address) as from_artifact_source_id,