Skip to content

Commit f763833

Browse files
committed
Fixed float timestamp from Subsquid
1 parent 457a3be commit f763833

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dipdup/models/evm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def from_subsquid_json(cls, event_json: dict[str, Any], header: dict[str, Any])
4949
data=event_json['data'],
5050
level=header['number'],
5151
log_index=event_json['logIndex'],
52-
timestamp=header['timestamp'],
52+
timestamp=int(header['timestamp']),
5353
topics=tuple(event_json['topics']),
5454
removed=False,
5555
transaction_hash=event_json['transactionHash'],
@@ -174,7 +174,7 @@ def from_subsquid_json(
174174
s=transaction_json['s'],
175175
# sighash=transaction_json['sighash'],
176176
status=transaction_json['status'],
177-
timestamp=header['timestamp'],
177+
timestamp=int(header['timestamp']),
178178
to=transaction_json['to'],
179179
transaction_index=transaction_json['transactionIndex'],
180180
type=transaction_json['type'],

0 commit comments

Comments
 (0)