Skip to content

Commit 2d90894

Browse files
committed
removed LogItem and used EventLog
1 parent 428251d commit 2d90894

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

Sources/web3swift/Web3/Web3+Eth+Websocket.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extension web3.Eth {
3030

3131
public func subscribeOnLogs(addresses: [EthereumAddress]? = nil,
3232
topics: [String]? = nil,
33-
listener: @escaping Web3SubscriptionListener<LogItem>) throws -> Subscription {
33+
listener: @escaping Web3SubscriptionListener<EventLog>) throws -> Subscription {
3434
let params = SubscribeOnLogsParams(address: addresses?.map { $0.address }, topics: topics)
3535
return try _subscribe(filter: .logs(params: params), listener: listener)
3636
}

Sources/web3swift/Web3/Web3+Structures.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -721,17 +721,6 @@ public struct BlockHeader: Decodable {
721721
public let transactionsRoot: String
722722
}
723723

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-
735724
public struct SyncingInfo: Decodable {
736725
public struct Status: Decodable {
737726
public let startingBlock: Int

0 commit comments

Comments
 (0)