Skip to content

Commit 4bceb1e

Browse files
committed
Make TransactionReceipt and related structs Sendable
1 parent f48d7a9 commit 4bceb1e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Sources/Web3Core/Structure/EventLog/EventLog.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import BigInt
1616
/// - `0x000000000000000000000000d5395c132c791a7f46fa8fc27f0ab6bacd824484]`
1717
/// - `transactionHash = 0x9f7bb2633abb3192d35f65e50a96f9f7ca878fa2ee7bf5d3fca489c0c60dc79a;`
1818
/// - `transactionIndex = 0x99;`
19-
public struct EventLog: Decodable {
19+
public struct EventLog: Decodable, Sendable {
2020
public var address: EthereumAddress
2121
public var blockHash: Data
2222
public var blockNumber: BigUInt

Sources/Web3Core/Structure/Transaction/TransactionReceipt.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import BigInt
1010

11-
public struct TransactionReceipt {
11+
public struct TransactionReceipt: Sendable {
1212
public var transactionHash: Data
1313
public var blockHash: Data
1414
public var blockNumber: BigUInt
@@ -27,7 +27,7 @@ public struct TransactionReceipt {
2727
}
2828

2929
extension TransactionReceipt {
30-
public enum TXStatus {
30+
public enum TXStatus: Sendable {
3131
case ok
3232
case failed
3333
case notYetProcessed

Sources/Web3Core/Transaction/EthereumBloomFilter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import CryptoSwift
1717
/// 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.
1818
///
1919
/// A definition of [Bloom filter](https://en.wikipedia.org/wiki/Bloom_filter#:~:text=A%20Bloom%20filter%20is%20a,a%20member%20of%20a%20set.).
20-
public struct EthereumBloomFilter {
20+
public struct EthereumBloomFilter: Sendable {
2121
static let mask = BigUInt(2047)
2222
/// Bloom filter.
2323
public var bytes = Data(repeatElement(UInt8(0), count: 256))

0 commit comments

Comments
 (0)