Skip to content

Commit

Permalink
Remove LogReceipt's payload and topic attributes and refactor `…
Browse files Browse the repository at this point in the history
…LogEntry` to `LogReceipt`

Add newsfragments
  • Loading branch information
tinom9 authored and pacrob committed Sep 5, 2023
1 parent d1745ff commit fbc7522
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions newsfragments/3043.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update `LogReceipt` and `TxReceipt` declarations. Remove `LogReceipt`'s `payload` and `topic` attributes. Refactor `LogEntry` to `LogReceipt`.
11 changes: 3 additions & 8 deletions web3/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,23 +225,18 @@ class BlockData(TypedDict, total=False):
proofOfAuthorityData: HexBytes


class LogEntry(TypedDict):
class LogReceipt(TypedDict):
address: ChecksumAddress
blockHash: HexBytes
blockNumber: BlockNumber
data: HexStr
data: HexBytes
logIndex: int
topics: Sequence[HexBytes]
transactionHash: HexBytes
transactionIndex: int
removed: bool


class LogReceipt(LogEntry):
payload: HexBytes
topic: HexBytes


class SubscriptionResponse(TypedDict):
subscription: HexBytes

Expand All @@ -255,7 +250,7 @@ class TransactionTypeSubscriptionResponse(SubscriptionResponse):


class LogsSubscriptionResponse(SubscriptionResponse):
result: LogEntry
result: LogReceipt


class SyncProgress(TypedDict):
Expand Down

0 comments on commit fbc7522

Please sign in to comment.