Skip to content

Commit d74c20c

Browse files
fix: logsBloom for transaction receipt weren't decoded from the json
1 parent ee26d1e commit d74c20c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Web3Core/Structure/Transaction/TransactionReceipt.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ extension TransactionReceipt: Decodable {
7272
}
7373

7474
self.logs = try container.decode([EventLog].self, forKey: .logs)
75+
76+
if let hexBytes = try? container.decodeHex(Data.self, forKey: .logsBloom) {
77+
self.logsBloom = EthereumBloomFilter(hexBytes)
78+
}
7579
}
7680
}
7781

0 commit comments

Comments
 (0)