mirror of
https://github.com/autistic-symposium/blockchain-data-engineering-toolkit.git
synced 2025-06-21 13:24:13 -04:00
💾
This commit is contained in:
parent
6e6d1b896f
commit
7aa9df5c10
8 changed files with 1 additions and 854152 deletions
|
@ -123,7 +123,7 @@ class TokenIndexer:
|
|||
try:
|
||||
for log in logs:
|
||||
processed_logs[log['transactionHash']] = {}
|
||||
processed_logs[log['transactionHash']]['blockNumber'] = log['blockNumber']
|
||||
processed_logs[log['transactionHash']]['blockNumber'] = convert_hex_to_int(log['blockNumber'])
|
||||
processed_logs[log['transactionHash']]['from'] = '0x' + log['topics'][1][26:]
|
||||
processed_logs[log['transactionHash']]['to'] = '0x' + log['topics'][2][26:]
|
||||
processed_logs[log['transactionHash']]['amount'] = float(Decimal(convert_hex_to_int(log['data'])) * self.decimal)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue