diff --git a/CHANGELOG.md b/CHANGELOG.md index a9134cb45..e79edfc73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic Releases prior to 7.0 has been removed from this file to declutter search results; see the [archived copy](https://github.com/dipdup-io/dipdup/blob/8.0.0b5/CHANGELOG.md) for the full list. +## [Unreleased] + +### Fixed + +- evm.node: Fixed empty `gasPrice` field base conversion on evm transaction deserialization. + ## [8.2.1] - 2025-02-19 ### Added diff --git a/src/dipdup/models/evm.py b/src/dipdup/models/evm.py index 125551edb..15582f515 100644 --- a/src/dipdup/models/evm.py +++ b/src/dipdup/models/evm.py @@ -67,7 +67,7 @@ class EvmTransactionData(HasLevel): effective_gas_price: int | None from_: str gas: int - gas_price: int + gas_price: int | None gas_used: int | None hash: str input: str @@ -107,7 +107,7 @@ def from_node_json( effective_gas_price=None, from_=transaction_json['from'], gas=int(transaction_json['gas'], 16), - gas_price=int(transaction_json['gasPrice'], 16), + gas_price=int(transaction_json['gasPrice'], 16) if transaction_json.get('gasPrice') else None, gas_used=None, hash=transaction_json['hash'], input=transaction_json['input'],