Skip to content

Commit

Permalink
Fixed float timestamp from Subsquid
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsereda committed Aug 7, 2024
1 parent 8da199e commit 45e5a07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dipdup/models/evm.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def from_subsquid_json(cls, event_json: dict[str, Any], header: dict[str, Any])
data=event_json['data'],
level=header['number'],
log_index=event_json['logIndex'],
timestamp=header['timestamp'],
timestamp=int(header['timestamp']),
topics=tuple(event_json['topics']),
removed=False,
transaction_hash=event_json['transactionHash'],
Expand Down Expand Up @@ -175,7 +175,7 @@ def from_subsquid_json(
s=transaction_json['s'],
# sighash=transaction_json['sighash'],
status=transaction_json['status'],
timestamp=header['timestamp'],
timestamp=int(header['timestamp']),
to=transaction_json['to'],
transaction_index=transaction_json['transactionIndex'],
type=transaction_json['type'],
Expand Down

0 comments on commit 45e5a07

Please sign in to comment.