fix for evm txns with no acc seq

This commit is contained in:
Eric Laurello 2024-08-29 09:52:45 -04:00
parent b773c35268
commit 9c2ccf9160
2 changed files with 22 additions and 4 deletions

View File

@ -26,6 +26,7 @@ WITH base_atts AS (
WHERE
msg_type IN (
'tx',
'signer',
'transfer'
)
@ -82,8 +83,16 @@ sender AS (
FROM
base_atts
WHERE
msg_type = 'tx'
AND attribute_key = 'acc_seq' qualify(ROW_NUMBER() over(PARTITION BY tx_id
(
(
msg_type = 'tx'
AND attribute_key = 'acc_seq'
)
OR (
msg_type = 'signer'
AND attribute_key = 'sei_addr'
)
) qualify(ROW_NUMBER() over(PARTITION BY tx_id
ORDER BY
msg_index)) = 1
),

View File

@ -26,6 +26,7 @@ WITH base_atts AS (
WHERE
msg_type IN (
'tx',
'signer',
'transfer',
'ibc_transfer',
'write_acknowledgement'
@ -141,8 +142,16 @@ sender AS (
FROM
base_atts
WHERE
msg_type = 'tx'
AND attribute_key = 'acc_seq' qualify(ROW_NUMBER() over(PARTITION BY tx_id
(
(
msg_type = 'tx'
AND attribute_key = 'acc_seq'
)
OR (
msg_type = 'signer'
AND attribute_key = 'sei_addr'
)
) qualify(ROW_NUMBER() over(PARTITION BY tx_id
ORDER BY
msg_index)) = 1
),