File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ extension web3.Eth {
30
30
31
31
public func subscribeOnLogs( addresses: [ EthereumAddress ] ? = nil ,
32
32
topics: [ String ] ? = nil ,
33
- listener: @escaping Web3SubscriptionListener < LogItem > ) throws -> Subscription {
33
+ listener: @escaping Web3SubscriptionListener < EventLog > ) throws -> Subscription {
34
34
let params = SubscribeOnLogsParams ( address: addresses? . map { $0. address } , topics: topics)
35
35
return try _subscribe ( filter: . logs( params: params) , listener: listener)
36
36
}
Original file line number Diff line number Diff line change @@ -721,17 +721,6 @@ public struct BlockHeader: Decodable {
721
721
public let transactionsRoot : String
722
722
}
723
723
724
- public struct LogItem : Decodable {
725
- public let address : String
726
- public let blockHash : String
727
- public let blockNumber : String
728
- public let data : String
729
- public let logIndex : String
730
- public let topics : [ String ]
731
- public let transactionHash : String
732
- public let transactionIndex : String
733
- }
734
-
735
724
public struct SyncingInfo : Decodable {
736
725
public struct Status : Decodable {
737
726
public let startingBlock : Int
You can’t perform that action at this time.
0 commit comments