Skip to content

Commit

Permalink
fix: add missing reason for v1.EventRetire
Browse files Browse the repository at this point in the history
  • Loading branch information
blushi committed Oct 21, 2024
1 parent e0b8698 commit 2028c79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index_retires.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def _index_retires(pg_conn, _client, _chain_num):
normalize["jurisdiction"] = value
elif key == "owner":
normalize["owner"] = value
elif key == "reason":
normalize["reason"] = value
with pg_conn.cursor() as _cur:
_cur.execute(
"""SELECT TRIM(BOTH '"' FROM (tx.data -> 'tx' -> 'body' -> 'memo')::text) AS memo FROM tx WHERE block_height=%s AND chain_num=%s AND tx_idx=%s""",
Expand Down

0 comments on commit 2028c79

Please sign in to comment.