mirror of
https://github.com/FlipsideCrypto/sei-models.git
synced 2026-02-06 15:36:45 +00:00
fix for evm txns with no acc seq (#54)
This commit is contained in:
parent
b773c35268
commit
b3e0cb9d52
@ -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
|
||||
),
|
||||
|
||||
@ -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
|
||||
),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user