Skip to content

Commit 4585e1b

Browse files
tinom9pacrob
authored andcommitted
Remove LogReceipt's payload and topic attributes and refactor LogEntry to LogReceipt
Add newsfragments
1 parent 9015054 commit 4585e1b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

newsfragments/3043.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update `LogReceipt` and `TxReceipt` declarations. Remove `LogReceipt`'s `payload` and `topic` attributes. Refactor `LogEntry` to `LogReceipt`.

web3/types.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,23 +225,18 @@ class BlockData(TypedDict, total=False):
225225
proofOfAuthorityData: HexBytes
226226

227227

228-
class LogEntry(TypedDict):
228+
class LogReceipt(TypedDict):
229229
address: ChecksumAddress
230230
blockHash: HexBytes
231231
blockNumber: BlockNumber
232-
data: HexStr
232+
data: HexBytes
233233
logIndex: int
234234
topics: Sequence[HexBytes]
235235
transactionHash: HexBytes
236236
transactionIndex: int
237237
removed: bool
238238

239239

240-
class LogReceipt(LogEntry):
241-
payload: HexBytes
242-
topic: HexBytes
243-
244-
245240
class SubscriptionResponse(TypedDict):
246241
subscription: HexBytes
247242

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

256251

257252
class LogsSubscriptionResponse(SubscriptionResponse):
258-
result: LogEntry
253+
result: LogReceipt
259254

260255

261256
class SyncProgress(TypedDict):

0 commit comments

Comments
 (0)