Skip to content

Commit

Permalink
Fix Subsquid Event deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsereda committed Dec 21, 2024
1 parent d9dff22 commit 457a3be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dipdup/models/evm.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def from_subsquid_json(
from_=transaction_json['from'],
gas=int(transaction_json['gas'], 16),
gas_price=int(transaction_json['gasPrice'], 16),
gas_used=int(transaction_json['gasUsed'], 16),
gas_used=int(transaction_json['gasUsed'], 16) if transaction_json['gasUsed'] else None,
hash=transaction_json['hash'],
input=transaction_json['input'],
level=header['number'],
Expand Down

0 comments on commit 457a3be

Please sign in to comment.