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,