diff --git a/Sources/Web3Core/Structure/EventLog/EventLog.swift b/Sources/Web3Core/Structure/EventLog/EventLog.swift index b68052bcf..79be052f1 100644 --- a/Sources/Web3Core/Structure/EventLog/EventLog.swift +++ b/Sources/Web3Core/Structure/EventLog/EventLog.swift @@ -16,7 +16,7 @@ import BigInt /// - `0x000000000000000000000000d5395c132c791a7f46fa8fc27f0ab6bacd824484]` /// - `transactionHash = 0x9f7bb2633abb3192d35f65e50a96f9f7ca878fa2ee7bf5d3fca489c0c60dc79a;` /// - `transactionIndex = 0x99;` -public struct EventLog: Decodable { +public struct EventLog: Decodable, Sendable { public var address: EthereumAddress public var blockHash: Data public var blockNumber: BigUInt diff --git a/Sources/Web3Core/Structure/Transaction/TransactionReceipt.swift b/Sources/Web3Core/Structure/Transaction/TransactionReceipt.swift index 9390134a9..c7bf16058 100644 --- a/Sources/Web3Core/Structure/Transaction/TransactionReceipt.swift +++ b/Sources/Web3Core/Structure/Transaction/TransactionReceipt.swift @@ -8,7 +8,7 @@ import Foundation import BigInt -public struct TransactionReceipt { +public struct TransactionReceipt: Sendable { public var transactionHash: Data public var blockHash: Data public var blockNumber: BigUInt @@ -27,7 +27,7 @@ public struct TransactionReceipt { } extension TransactionReceipt { - public enum TXStatus { + public enum TXStatus: Sendable { case ok case failed case notYetProcessed diff --git a/Sources/Web3Core/Transaction/EthereumBloomFilter.swift b/Sources/Web3Core/Transaction/EthereumBloomFilter.swift index 30bff1f78..ba7c7f136 100755 --- a/Sources/Web3Core/Transaction/EthereumBloomFilter.swift +++ b/Sources/Web3Core/Transaction/EthereumBloomFilter.swift @@ -17,7 +17,7 @@ import CryptoSwift /// Bloom filter can be calculated for any set of data. In case of Ethereum blockchain it could be a set of addresses, event topics etc. /// /// A definition of [Bloom filter](https://en.wikipedia.org/wiki/Bloom_filter#:~:text=A%20Bloom%20filter%20is%20a,a%20member%20of%20a%20set.). -public struct EthereumBloomFilter { +public struct EthereumBloomFilter: Sendable { static let mask = BigUInt(2047) /// Bloom filter. public var bytes = Data(repeatElement(UInt8(0), count: 256))