From 46066d24287c1a9d062bffbb92d850bfa5756fbc Mon Sep 17 00:00:00 2001 From: Reuven Gonzales Date: Thu, 30 May 2024 23:05:21 -0400 Subject: [PATCH] Fixes event filtering for any_evm (#1561) Closes #1560 --- .../dbt/macros/models/contract_invocation_events_with_l1.sql | 2 +- .../blockchain/int_optimism_contract_invocation_events.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 70248334c..440b511ee 100644 --- a/warehouse/dbt/macros/models/contract_invocation_events_with_l1.sql +++ b/warehouse/dbt/macros/models/contract_invocation_events_with_l1.sql @@ -19,7 +19,7 @@ with blockchain_artifacts as ( else 0 end as artifact_rank from {{ ref('int_all_artifacts') }} - where artifact_source = "{{ upper_network_name }}" + where artifact_source in ("{{ upper_network_name }}", "ANY_EVM") ) group by artifact_source_id ), diff --git a/warehouse/dbt/models/intermediate/blockchain/int_optimism_contract_invocation_events.sql b/warehouse/dbt/models/intermediate/blockchain/int_optimism_contract_invocation_events.sql index 273c89c11..deba53768 100644 --- a/warehouse/dbt/models/intermediate/blockchain/int_optimism_contract_invocation_events.sql +++ b/warehouse/dbt/models/intermediate/blockchain/int_optimism_contract_invocation_events.sql @@ -34,7 +34,7 @@ with blockchain_artifacts as ( else 0 end as artifact_rank from {{ ref('int_all_artifacts') }} - where LOWER(artifact_source) = LOWER('OPTIMISM') + where UPPER(artifact_source) in ('OPTIMISM', 'ANY_EVM') ) group by artifact_source_id ),