Build Information
Successful build of web3.swift, reference develop (4f666e
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 07:39:33 UTC.
Swift 6 data race errors: 71
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
105 | outputWithRecidPtr.advanced(by: 64).pointee = UInt8(recid)
106 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:153:12: warning: result of call to 'withUnsafeMutableBytes' is unused
151 | var size = 65
152 | var rv = Data(count: size)
153 | rv.withUnsafeMutableBytes {
| `- warning: result of call to 'withUnsafeMutableBytes' is unused
154 | secp256k1_ec_pubkey_serialize(ctx, $0.bindMemory(to: UInt8.self).baseAddress!, &size, pubkey, UInt32(SECP256K1_EC_UNCOMPRESSED))
155 | }
[777/790] Compiling web3 HexUtil.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/AesUtil.swift:39:19: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
37 | outputPtr.deallocate()
38 | }
39 | outputPtr.assign(from: inputPtr, count: length)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
40 |
41 | AES_CTR_xcrypt_buffer(ctx, outputPtr, UInt32(length))
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:104:28: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
102 | outputWithRecidPtr.deallocate()
103 | }
104 | outputWithRecidPtr.assign(from: outputPtr, count: 64)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
105 | outputWithRecidPtr.advanced(by: 64).pointee = UInt8(recid)
106 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:153:12: warning: result of call to 'withUnsafeMutableBytes' is unused
151 | var size = 65
152 | var rv = Data(count: size)
153 | rv.withUnsafeMutableBytes {
| `- warning: result of call to 'withUnsafeMutableBytes' is unused
154 | secp256k1_ec_pubkey_serialize(ctx, $0.bindMemory(to: UInt8.self).baseAddress!, &size, pubkey, UInt32(SECP256K1_EC_UNCOMPRESSED))
155 | }
[778/790] Compiling web3 KeyDerivation.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/AesUtil.swift:39:19: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
37 | outputPtr.deallocate()
38 | }
39 | outputPtr.assign(from: inputPtr, count: length)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
40 |
41 | AES_CTR_xcrypt_buffer(ctx, outputPtr, UInt32(length))
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:104:28: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
102 | outputWithRecidPtr.deallocate()
103 | }
104 | outputWithRecidPtr.assign(from: outputPtr, count: 64)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
105 | outputWithRecidPtr.advanced(by: 64).pointee = UInt8(recid)
106 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:153:12: warning: result of call to 'withUnsafeMutableBytes' is unused
151 | var size = 65
152 | var rv = Data(count: size)
153 | rv.withUnsafeMutableBytes {
| `- warning: result of call to 'withUnsafeMutableBytes' is unused
154 | secp256k1_ec_pubkey_serialize(ctx, $0.bindMemory(to: UInt8.self).baseAddress!, &size, pubkey, UInt32(SECP256K1_EC_UNCOMPRESSED))
155 | }
[779/790] Compiling web3 KeyUtil.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/AesUtil.swift:39:19: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
37 | outputPtr.deallocate()
38 | }
39 | outputPtr.assign(from: inputPtr, count: length)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
40 |
41 | AES_CTR_xcrypt_buffer(ctx, outputPtr, UInt32(length))
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:104:28: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
102 | outputWithRecidPtr.deallocate()
103 | }
104 | outputWithRecidPtr.assign(from: outputPtr, count: 64)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
105 | outputWithRecidPtr.advanced(by: 64).pointee = UInt8(recid)
106 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:153:12: warning: result of call to 'withUnsafeMutableBytes' is unused
151 | var size = 65
152 | var rv = Data(count: size)
153 | rv.withUnsafeMutableBytes {
| `- warning: result of call to 'withUnsafeMutableBytes' is unused
154 | secp256k1_ec_pubkey_serialize(ctx, $0.bindMemory(to: UInt8.self).baseAddress!, &size, pubkey, UInt32(SECP256K1_EC_UNCOMPRESSED))
155 | }
[780/790] Compiling web3 KeystoreUtil.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/AesUtil.swift:39:19: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
37 | outputPtr.deallocate()
38 | }
39 | outputPtr.assign(from: inputPtr, count: length)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
40 |
41 | AES_CTR_xcrypt_buffer(ctx, outputPtr, UInt32(length))
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:104:28: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
102 | outputWithRecidPtr.deallocate()
103 | }
104 | outputWithRecidPtr.assign(from: outputPtr, count: 64)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
105 | outputWithRecidPtr.advanced(by: 64).pointee = UInt8(recid)
106 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:153:12: warning: result of call to 'withUnsafeMutableBytes' is unused
151 | var size = 65
152 | var rv = Data(count: size)
153 | rv.withUnsafeMutableBytes {
| `- warning: result of call to 'withUnsafeMutableBytes' is unused
154 | secp256k1_ec_pubkey_serialize(ctx, $0.bindMemory(to: UInt8.self).baseAddress!, &size, pubkey, UInt32(SECP256K1_EC_UNCOMPRESSED))
155 | }
[781/790] Compiling web3 PropertyWrappers.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/AesUtil.swift:39:19: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
37 | outputPtr.deallocate()
38 | }
39 | outputPtr.assign(from: inputPtr, count: length)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
40 |
41 | AES_CTR_xcrypt_buffer(ctx, outputPtr, UInt32(length))
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:104:28: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
102 | outputWithRecidPtr.deallocate()
103 | }
104 | outputWithRecidPtr.assign(from: outputPtr, count: 64)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
105 | outputWithRecidPtr.advanced(by: 64).pointee = UInt8(recid)
106 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:153:12: warning: result of call to 'withUnsafeMutableBytes' is unused
151 | var size = 65
152 | var rv = Data(count: size)
153 | rv.withUnsafeMutableBytes {
| `- warning: result of call to 'withUnsafeMutableBytes' is unused
154 | secp256k1_ec_pubkey_serialize(ctx, $0.bindMemory(to: UInt8.self).baseAddress!, &size, pubkey, UInt32(SECP256K1_EC_UNCOMPRESSED))
155 | }
[782/790] Compiling web3 RLP.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/AesUtil.swift:39:19: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
37 | outputPtr.deallocate()
38 | }
39 | outputPtr.assign(from: inputPtr, count: length)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
40 |
41 | AES_CTR_xcrypt_buffer(ctx, outputPtr, UInt32(length))
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:104:28: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
102 | outputWithRecidPtr.deallocate()
103 | }
104 | outputWithRecidPtr.assign(from: outputPtr, count: 64)
| |- warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
| `- note: use 'update(from:count:)' instead
105 | outputWithRecidPtr.advanced(by: 64).pointee = UInt8(recid)
106 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/Utils/KeyUtil.swift:153:12: warning: result of call to 'withUnsafeMutableBytes' is unused
151 | var size = 65
152 | var rv = Data(count: size)
153 | rv.withUnsafeMutableBytes {
| `- warning: result of call to 'withUnsafeMutableBytes' is unused
154 | secp256k1_ec_pubkey_serialize(ctx, $0.bindMemory(to: UInt8.self).baseAddress!, &size, pubkey, UInt32(SECP256K1_EC_UNCOMPRESSED))
155 | }
[783/790] Compiling web3 ERC20Events.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC20Responses {
10 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: String
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: String
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:29:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | public struct decimalsResponse: ABIResponse, MulticallDecodableResponse {
29 | public static var types: [ABIType.Type] = [UInt8.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public let value: UInt8
31 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:38:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
38 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public let value: BigUInt
40 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC721Responses {
10 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: BigUInt
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct ownerResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [EthereumAddress.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: EthereumAddress
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:31:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public enum ERC721MetadataResponses {
30 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
31 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public let value: String
33 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:40:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
40 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public let value: String
42 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:49:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | public struct tokenURIResponse: ABIResponse, MulticallDecodableResponse {
49 | public static var types: [ABIType.Type] = [URL.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | @available(*, deprecated, renamed: "value") public var uri: URL { value }
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:63:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | public enum ERC721EnumerableResponses {
62 | public struct numberResponse: ABIResponse, MulticallDecodableResponse {
63 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | public let value: BigUInt
65 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:216:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
214 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
215 | ) {
216 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
217 | do {
218 | let balance = try await balanceOf(contract: contract, address: address)
| `- note: closure captures 'self' which is accessible to code in the current task
219 | completionHandler(.success(balance))
220 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:231:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
229 | completionHandler: @escaping (Result<EthereumAddress, Error>) -> Void
230 | ) {
231 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
232 | do {
233 | let ownerOf = try await ownerOf(contract: contract, tokenId: tokenId)
| `- note: closure captures 'self' which is accessible to code in the current task
234 | completionHandler(.success(ownerOf))
235 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:247:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
246 | ) {
247 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | do {
249 | let result = try await transferEventsTo(recipient: recipient, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
250 | completionHandler(.success(result))
251 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:263:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
261 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
262 | ) {
263 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
264 | do {
265 | let result = try await transferEventsFrom(sender: sender, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
266 | completionHandler(.success(result))
267 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:279:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
277 | completionHandler: @escaping (Result<String, Error>) -> Void
278 | ) {
279 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
280 | do {
281 | let result = try await name(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
282 | completionHandler(.success(result))
283 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:293:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
291 | completionHandler: @escaping (Result<String, Error>) -> Void
292 | ) {
293 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
294 | do {
295 | let result = try await symbol(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
296 | completionHandler(.success(result))
297 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:308:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
306 | completionHandler: @escaping (Result<URL, Error>) -> Void
307 | ) {
308 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
309 | do {
310 | let result = try await tokenURI(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
311 | completionHandler(.success(result))
312 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:323:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
321 | completionHandler: @escaping (Result<Token, Error>) -> Void
322 | ) {
323 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
324 | do {
325 | let result = try await tokenMetadata(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
326 | completionHandler(.success(result))
327 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:339:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
337 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
338 | ) {
339 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
340 | do {
341 | let result = try await totalSupply(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
342 | completionHandler(.success(result))
343 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:354:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
352 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
353 | ) {
354 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 | do {
356 | let result = try await tokenByIndex(contract: contract, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
357 | completionHandler(.success(result))
358 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:370:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
368 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
369 | ) {
370 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
371 | do {
372 | let result = try await tokenOfOwnerByIndex(contract: contract, owner: owner, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
373 | completionHandler(.success(result))
374 | } catch {
[784/790] Compiling web3 ERC20Functions.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC20Responses {
10 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: String
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: String
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:29:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | public struct decimalsResponse: ABIResponse, MulticallDecodableResponse {
29 | public static var types: [ABIType.Type] = [UInt8.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public let value: UInt8
31 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:38:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
38 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public let value: BigUInt
40 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC721Responses {
10 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: BigUInt
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct ownerResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [EthereumAddress.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: EthereumAddress
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:31:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public enum ERC721MetadataResponses {
30 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
31 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public let value: String
33 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:40:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
40 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public let value: String
42 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:49:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | public struct tokenURIResponse: ABIResponse, MulticallDecodableResponse {
49 | public static var types: [ABIType.Type] = [URL.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | @available(*, deprecated, renamed: "value") public var uri: URL { value }
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:63:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | public enum ERC721EnumerableResponses {
62 | public struct numberResponse: ABIResponse, MulticallDecodableResponse {
63 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | public let value: BigUInt
65 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:216:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
214 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
215 | ) {
216 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
217 | do {
218 | let balance = try await balanceOf(contract: contract, address: address)
| `- note: closure captures 'self' which is accessible to code in the current task
219 | completionHandler(.success(balance))
220 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:231:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
229 | completionHandler: @escaping (Result<EthereumAddress, Error>) -> Void
230 | ) {
231 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
232 | do {
233 | let ownerOf = try await ownerOf(contract: contract, tokenId: tokenId)
| `- note: closure captures 'self' which is accessible to code in the current task
234 | completionHandler(.success(ownerOf))
235 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:247:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
246 | ) {
247 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | do {
249 | let result = try await transferEventsTo(recipient: recipient, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
250 | completionHandler(.success(result))
251 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:263:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
261 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
262 | ) {
263 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
264 | do {
265 | let result = try await transferEventsFrom(sender: sender, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
266 | completionHandler(.success(result))
267 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:279:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
277 | completionHandler: @escaping (Result<String, Error>) -> Void
278 | ) {
279 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
280 | do {
281 | let result = try await name(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
282 | completionHandler(.success(result))
283 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:293:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
291 | completionHandler: @escaping (Result<String, Error>) -> Void
292 | ) {
293 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
294 | do {
295 | let result = try await symbol(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
296 | completionHandler(.success(result))
297 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:308:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
306 | completionHandler: @escaping (Result<URL, Error>) -> Void
307 | ) {
308 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
309 | do {
310 | let result = try await tokenURI(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
311 | completionHandler(.success(result))
312 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:323:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
321 | completionHandler: @escaping (Result<Token, Error>) -> Void
322 | ) {
323 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
324 | do {
325 | let result = try await tokenMetadata(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
326 | completionHandler(.success(result))
327 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:339:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
337 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
338 | ) {
339 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
340 | do {
341 | let result = try await totalSupply(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
342 | completionHandler(.success(result))
343 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:354:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
352 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
353 | ) {
354 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 | do {
356 | let result = try await tokenByIndex(contract: contract, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
357 | completionHandler(.success(result))
358 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:370:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
368 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
369 | ) {
370 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
371 | do {
372 | let result = try await tokenOfOwnerByIndex(contract: contract, owner: owner, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
373 | completionHandler(.success(result))
374 | } catch {
[785/790] Compiling web3 ERC20Responses.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC20Responses {
10 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: String
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: String
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:29:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | public struct decimalsResponse: ABIResponse, MulticallDecodableResponse {
29 | public static var types: [ABIType.Type] = [UInt8.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public let value: UInt8
31 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:38:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
38 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public let value: BigUInt
40 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC721Responses {
10 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: BigUInt
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct ownerResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [EthereumAddress.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: EthereumAddress
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:31:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public enum ERC721MetadataResponses {
30 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
31 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public let value: String
33 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:40:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
40 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public let value: String
42 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:49:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | public struct tokenURIResponse: ABIResponse, MulticallDecodableResponse {
49 | public static var types: [ABIType.Type] = [URL.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | @available(*, deprecated, renamed: "value") public var uri: URL { value }
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:63:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | public enum ERC721EnumerableResponses {
62 | public struct numberResponse: ABIResponse, MulticallDecodableResponse {
63 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | public let value: BigUInt
65 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:216:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
214 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
215 | ) {
216 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
217 | do {
218 | let balance = try await balanceOf(contract: contract, address: address)
| `- note: closure captures 'self' which is accessible to code in the current task
219 | completionHandler(.success(balance))
220 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:231:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
229 | completionHandler: @escaping (Result<EthereumAddress, Error>) -> Void
230 | ) {
231 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
232 | do {
233 | let ownerOf = try await ownerOf(contract: contract, tokenId: tokenId)
| `- note: closure captures 'self' which is accessible to code in the current task
234 | completionHandler(.success(ownerOf))
235 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:247:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
246 | ) {
247 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | do {
249 | let result = try await transferEventsTo(recipient: recipient, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
250 | completionHandler(.success(result))
251 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:263:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
261 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
262 | ) {
263 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
264 | do {
265 | let result = try await transferEventsFrom(sender: sender, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
266 | completionHandler(.success(result))
267 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:279:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
277 | completionHandler: @escaping (Result<String, Error>) -> Void
278 | ) {
279 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
280 | do {
281 | let result = try await name(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
282 | completionHandler(.success(result))
283 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:293:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
291 | completionHandler: @escaping (Result<String, Error>) -> Void
292 | ) {
293 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
294 | do {
295 | let result = try await symbol(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
296 | completionHandler(.success(result))
297 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:308:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
306 | completionHandler: @escaping (Result<URL, Error>) -> Void
307 | ) {
308 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
309 | do {
310 | let result = try await tokenURI(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
311 | completionHandler(.success(result))
312 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:323:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
321 | completionHandler: @escaping (Result<Token, Error>) -> Void
322 | ) {
323 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
324 | do {
325 | let result = try await tokenMetadata(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
326 | completionHandler(.success(result))
327 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:339:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
337 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
338 | ) {
339 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
340 | do {
341 | let result = try await totalSupply(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
342 | completionHandler(.success(result))
343 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:354:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
352 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
353 | ) {
354 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 | do {
356 | let result = try await tokenByIndex(contract: contract, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
357 | completionHandler(.success(result))
358 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:370:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
368 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
369 | ) {
370 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
371 | do {
372 | let result = try await tokenOfOwnerByIndex(contract: contract, owner: owner, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
373 | completionHandler(.success(result))
374 | } catch {
[786/790] Compiling web3 ERC721.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC20Responses {
10 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: String
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: String
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:29:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | public struct decimalsResponse: ABIResponse, MulticallDecodableResponse {
29 | public static var types: [ABIType.Type] = [UInt8.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public let value: UInt8
31 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:38:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
38 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public let value: BigUInt
40 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC721Responses {
10 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: BigUInt
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct ownerResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [EthereumAddress.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: EthereumAddress
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:31:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public enum ERC721MetadataResponses {
30 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
31 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public let value: String
33 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:40:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
40 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public let value: String
42 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:49:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | public struct tokenURIResponse: ABIResponse, MulticallDecodableResponse {
49 | public static var types: [ABIType.Type] = [URL.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | @available(*, deprecated, renamed: "value") public var uri: URL { value }
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:63:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | public enum ERC721EnumerableResponses {
62 | public struct numberResponse: ABIResponse, MulticallDecodableResponse {
63 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | public let value: BigUInt
65 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:216:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
214 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
215 | ) {
216 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
217 | do {
218 | let balance = try await balanceOf(contract: contract, address: address)
| `- note: closure captures 'self' which is accessible to code in the current task
219 | completionHandler(.success(balance))
220 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:231:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
229 | completionHandler: @escaping (Result<EthereumAddress, Error>) -> Void
230 | ) {
231 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
232 | do {
233 | let ownerOf = try await ownerOf(contract: contract, tokenId: tokenId)
| `- note: closure captures 'self' which is accessible to code in the current task
234 | completionHandler(.success(ownerOf))
235 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:247:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
246 | ) {
247 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | do {
249 | let result = try await transferEventsTo(recipient: recipient, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
250 | completionHandler(.success(result))
251 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:263:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
261 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
262 | ) {
263 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
264 | do {
265 | let result = try await transferEventsFrom(sender: sender, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
266 | completionHandler(.success(result))
267 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:279:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
277 | completionHandler: @escaping (Result<String, Error>) -> Void
278 | ) {
279 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
280 | do {
281 | let result = try await name(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
282 | completionHandler(.success(result))
283 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:293:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
291 | completionHandler: @escaping (Result<String, Error>) -> Void
292 | ) {
293 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
294 | do {
295 | let result = try await symbol(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
296 | completionHandler(.success(result))
297 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:308:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
306 | completionHandler: @escaping (Result<URL, Error>) -> Void
307 | ) {
308 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
309 | do {
310 | let result = try await tokenURI(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
311 | completionHandler(.success(result))
312 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:323:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
321 | completionHandler: @escaping (Result<Token, Error>) -> Void
322 | ) {
323 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
324 | do {
325 | let result = try await tokenMetadata(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
326 | completionHandler(.success(result))
327 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:339:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
337 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
338 | ) {
339 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
340 | do {
341 | let result = try await totalSupply(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
342 | completionHandler(.success(result))
343 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:354:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
352 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
353 | ) {
354 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 | do {
356 | let result = try await tokenByIndex(contract: contract, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
357 | completionHandler(.success(result))
358 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:370:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
368 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
369 | ) {
370 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
371 | do {
372 | let result = try await tokenOfOwnerByIndex(contract: contract, owner: owner, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
373 | completionHandler(.success(result))
374 | } catch {
[787/790] Compiling web3 ERC721Events.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC20Responses {
10 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: String
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: String
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:29:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | public struct decimalsResponse: ABIResponse, MulticallDecodableResponse {
29 | public static var types: [ABIType.Type] = [UInt8.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public let value: UInt8
31 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:38:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
38 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public let value: BigUInt
40 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC721Responses {
10 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: BigUInt
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct ownerResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [EthereumAddress.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: EthereumAddress
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:31:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public enum ERC721MetadataResponses {
30 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
31 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public let value: String
33 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:40:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
40 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public let value: String
42 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:49:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | public struct tokenURIResponse: ABIResponse, MulticallDecodableResponse {
49 | public static var types: [ABIType.Type] = [URL.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | @available(*, deprecated, renamed: "value") public var uri: URL { value }
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:63:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | public enum ERC721EnumerableResponses {
62 | public struct numberResponse: ABIResponse, MulticallDecodableResponse {
63 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | public let value: BigUInt
65 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:216:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
214 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
215 | ) {
216 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
217 | do {
218 | let balance = try await balanceOf(contract: contract, address: address)
| `- note: closure captures 'self' which is accessible to code in the current task
219 | completionHandler(.success(balance))
220 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:231:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
229 | completionHandler: @escaping (Result<EthereumAddress, Error>) -> Void
230 | ) {
231 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
232 | do {
233 | let ownerOf = try await ownerOf(contract: contract, tokenId: tokenId)
| `- note: closure captures 'self' which is accessible to code in the current task
234 | completionHandler(.success(ownerOf))
235 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:247:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
246 | ) {
247 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | do {
249 | let result = try await transferEventsTo(recipient: recipient, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
250 | completionHandler(.success(result))
251 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:263:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
261 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
262 | ) {
263 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
264 | do {
265 | let result = try await transferEventsFrom(sender: sender, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
266 | completionHandler(.success(result))
267 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:279:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
277 | completionHandler: @escaping (Result<String, Error>) -> Void
278 | ) {
279 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
280 | do {
281 | let result = try await name(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
282 | completionHandler(.success(result))
283 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:293:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
291 | completionHandler: @escaping (Result<String, Error>) -> Void
292 | ) {
293 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
294 | do {
295 | let result = try await symbol(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
296 | completionHandler(.success(result))
297 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:308:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
306 | completionHandler: @escaping (Result<URL, Error>) -> Void
307 | ) {
308 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
309 | do {
310 | let result = try await tokenURI(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
311 | completionHandler(.success(result))
312 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:323:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
321 | completionHandler: @escaping (Result<Token, Error>) -> Void
322 | ) {
323 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
324 | do {
325 | let result = try await tokenMetadata(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
326 | completionHandler(.success(result))
327 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:339:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
337 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
338 | ) {
339 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
340 | do {
341 | let result = try await totalSupply(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
342 | completionHandler(.success(result))
343 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:354:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
352 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
353 | ) {
354 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 | do {
356 | let result = try await tokenByIndex(contract: contract, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
357 | completionHandler(.success(result))
358 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:370:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
368 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
369 | ) {
370 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
371 | do {
372 | let result = try await tokenOfOwnerByIndex(contract: contract, owner: owner, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
373 | completionHandler(.success(result))
374 | } catch {
[788/790] Compiling web3 ERC721Functions.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC20Responses {
10 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: String
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: String
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:29:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | public struct decimalsResponse: ABIResponse, MulticallDecodableResponse {
29 | public static var types: [ABIType.Type] = [UInt8.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public let value: UInt8
31 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:38:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
38 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public let value: BigUInt
40 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC721Responses {
10 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: BigUInt
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct ownerResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [EthereumAddress.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: EthereumAddress
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:31:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public enum ERC721MetadataResponses {
30 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
31 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public let value: String
33 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:40:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
40 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public let value: String
42 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:49:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | public struct tokenURIResponse: ABIResponse, MulticallDecodableResponse {
49 | public static var types: [ABIType.Type] = [URL.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | @available(*, deprecated, renamed: "value") public var uri: URL { value }
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:63:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | public enum ERC721EnumerableResponses {
62 | public struct numberResponse: ABIResponse, MulticallDecodableResponse {
63 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | public let value: BigUInt
65 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:216:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
214 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
215 | ) {
216 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
217 | do {
218 | let balance = try await balanceOf(contract: contract, address: address)
| `- note: closure captures 'self' which is accessible to code in the current task
219 | completionHandler(.success(balance))
220 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:231:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
229 | completionHandler: @escaping (Result<EthereumAddress, Error>) -> Void
230 | ) {
231 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
232 | do {
233 | let ownerOf = try await ownerOf(contract: contract, tokenId: tokenId)
| `- note: closure captures 'self' which is accessible to code in the current task
234 | completionHandler(.success(ownerOf))
235 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:247:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
246 | ) {
247 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | do {
249 | let result = try await transferEventsTo(recipient: recipient, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
250 | completionHandler(.success(result))
251 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:263:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
261 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
262 | ) {
263 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
264 | do {
265 | let result = try await transferEventsFrom(sender: sender, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
266 | completionHandler(.success(result))
267 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:279:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
277 | completionHandler: @escaping (Result<String, Error>) -> Void
278 | ) {
279 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
280 | do {
281 | let result = try await name(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
282 | completionHandler(.success(result))
283 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:293:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
291 | completionHandler: @escaping (Result<String, Error>) -> Void
292 | ) {
293 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
294 | do {
295 | let result = try await symbol(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
296 | completionHandler(.success(result))
297 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:308:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
306 | completionHandler: @escaping (Result<URL, Error>) -> Void
307 | ) {
308 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
309 | do {
310 | let result = try await tokenURI(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
311 | completionHandler(.success(result))
312 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:323:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
321 | completionHandler: @escaping (Result<Token, Error>) -> Void
322 | ) {
323 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
324 | do {
325 | let result = try await tokenMetadata(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
326 | completionHandler(.success(result))
327 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:339:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
337 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
338 | ) {
339 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
340 | do {
341 | let result = try await totalSupply(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
342 | completionHandler(.success(result))
343 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:354:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
352 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
353 | ) {
354 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 | do {
356 | let result = try await tokenByIndex(contract: contract, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
357 | completionHandler(.success(result))
358 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:370:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
368 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
369 | ) {
370 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
371 | do {
372 | let result = try await tokenOfOwnerByIndex(contract: contract, owner: owner, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
373 | completionHandler(.success(result))
374 | } catch {
[789/790] Compiling web3 ERC721Responses.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC20Responses {
10 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: String
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: String
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:29:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | public struct decimalsResponse: ABIResponse, MulticallDecodableResponse {
29 | public static var types: [ABIType.Type] = [UInt8.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public let value: UInt8
31 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:38:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
38 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public let value: BigUInt
40 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC721Responses {
10 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: BigUInt
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct ownerResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [EthereumAddress.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: EthereumAddress
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:31:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public enum ERC721MetadataResponses {
30 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
31 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public let value: String
33 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:40:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
40 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public let value: String
42 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:49:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | public struct tokenURIResponse: ABIResponse, MulticallDecodableResponse {
49 | public static var types: [ABIType.Type] = [URL.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | @available(*, deprecated, renamed: "value") public var uri: URL { value }
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:63:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | public enum ERC721EnumerableResponses {
62 | public struct numberResponse: ABIResponse, MulticallDecodableResponse {
63 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | public let value: BigUInt
65 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:216:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
214 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
215 | ) {
216 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
217 | do {
218 | let balance = try await balanceOf(contract: contract, address: address)
| `- note: closure captures 'self' which is accessible to code in the current task
219 | completionHandler(.success(balance))
220 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:231:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
229 | completionHandler: @escaping (Result<EthereumAddress, Error>) -> Void
230 | ) {
231 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
232 | do {
233 | let ownerOf = try await ownerOf(contract: contract, tokenId: tokenId)
| `- note: closure captures 'self' which is accessible to code in the current task
234 | completionHandler(.success(ownerOf))
235 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:247:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
246 | ) {
247 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | do {
249 | let result = try await transferEventsTo(recipient: recipient, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
250 | completionHandler(.success(result))
251 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:263:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
261 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
262 | ) {
263 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
264 | do {
265 | let result = try await transferEventsFrom(sender: sender, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
266 | completionHandler(.success(result))
267 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:279:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
277 | completionHandler: @escaping (Result<String, Error>) -> Void
278 | ) {
279 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
280 | do {
281 | let result = try await name(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
282 | completionHandler(.success(result))
283 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:293:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
291 | completionHandler: @escaping (Result<String, Error>) -> Void
292 | ) {
293 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
294 | do {
295 | let result = try await symbol(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
296 | completionHandler(.success(result))
297 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:308:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
306 | completionHandler: @escaping (Result<URL, Error>) -> Void
307 | ) {
308 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
309 | do {
310 | let result = try await tokenURI(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
311 | completionHandler(.success(result))
312 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:323:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
321 | completionHandler: @escaping (Result<Token, Error>) -> Void
322 | ) {
323 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
324 | do {
325 | let result = try await tokenMetadata(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
326 | completionHandler(.success(result))
327 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:339:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
337 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
338 | ) {
339 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
340 | do {
341 | let result = try await totalSupply(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
342 | completionHandler(.success(result))
343 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:354:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
352 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
353 | ) {
354 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 | do {
356 | let result = try await tokenByIndex(contract: contract, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
357 | completionHandler(.success(result))
358 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:370:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
368 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
369 | ) {
370 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
371 | do {
372 | let result = try await tokenOfOwnerByIndex(contract: contract, owner: owner, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
373 | completionHandler(.success(result))
374 | } catch {
[790/790] Compiling web3 ByteExtensions.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC20Responses {
10 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: String
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: String
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:29:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | public struct decimalsResponse: ABIResponse, MulticallDecodableResponse {
29 | public static var types: [ABIType.Type] = [UInt8.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | public let value: UInt8
31 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC20/ERC20Responses.swift:38:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 |
37 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
38 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public let value: BigUInt
40 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:11:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | public enum ERC721Responses {
10 | public struct balanceResponse: ABIResponse, MulticallDecodableResponse {
11 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public let value: BigUInt
13 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:20:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | public struct ownerResponse: ABIResponse, MulticallDecodableResponse {
20 | public static var types: [ABIType.Type] = [EthereumAddress.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public let value: EthereumAddress
22 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:31:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
29 | public enum ERC721MetadataResponses {
30 | public struct nameResponse: ABIResponse, MulticallDecodableResponse {
31 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public let value: String
33 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:40:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
38 |
39 | public struct symbolResponse: ABIResponse, MulticallDecodableResponse {
40 | public static var types: [ABIType.Type] = [String.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
41 | public let value: String
42 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:49:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | public struct tokenURIResponse: ABIResponse, MulticallDecodableResponse {
49 | public static var types: [ABIType.Type] = [URL.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | @available(*, deprecated, renamed: "value") public var uri: URL { value }
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721Responses.swift:63:27: warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
61 | public enum ERC721EnumerableResponses {
62 | public struct numberResponse: ABIResponse, MulticallDecodableResponse {
63 | public static var types: [ABIType.Type] = [BigUInt.self]
| |- warning: static property 'types' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'types' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'types' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | public let value: BigUInt
65 |
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:216:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
214 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
215 | ) {
216 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
217 | do {
218 | let balance = try await balanceOf(contract: contract, address: address)
| `- note: closure captures 'self' which is accessible to code in the current task
219 | completionHandler(.success(balance))
220 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:231:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
229 | completionHandler: @escaping (Result<EthereumAddress, Error>) -> Void
230 | ) {
231 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
232 | do {
233 | let ownerOf = try await ownerOf(contract: contract, tokenId: tokenId)
| `- note: closure captures 'self' which is accessible to code in the current task
234 | completionHandler(.success(ownerOf))
235 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:247:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
245 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
246 | ) {
247 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
248 | do {
249 | let result = try await transferEventsTo(recipient: recipient, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
250 | completionHandler(.success(result))
251 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:263:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
261 | completionHandler: @escaping (Result<[ERC721Events.Transfer], Error>) -> Void
262 | ) {
263 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
264 | do {
265 | let result = try await transferEventsFrom(sender: sender, fromBlock: fromBlock, toBlock: toBlock)
| `- note: closure captures 'self' which is accessible to code in the current task
266 | completionHandler(.success(result))
267 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:279:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
277 | completionHandler: @escaping (Result<String, Error>) -> Void
278 | ) {
279 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
280 | do {
281 | let result = try await name(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
282 | completionHandler(.success(result))
283 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:293:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
291 | completionHandler: @escaping (Result<String, Error>) -> Void
292 | ) {
293 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
294 | do {
295 | let result = try await symbol(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
296 | completionHandler(.success(result))
297 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:308:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
306 | completionHandler: @escaping (Result<URL, Error>) -> Void
307 | ) {
308 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
309 | do {
310 | let result = try await tokenURI(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
311 | completionHandler(.success(result))
312 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:323:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
321 | completionHandler: @escaping (Result<Token, Error>) -> Void
322 | ) {
323 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
324 | do {
325 | let result = try await tokenMetadata(contract: contract, tokenID: tokenID)
| `- note: closure captures 'self' which is accessible to code in the current task
326 | completionHandler(.success(result))
327 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:339:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
337 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
338 | ) {
339 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
340 | do {
341 | let result = try await totalSupply(contract: contract)
| `- note: closure captures 'self' which is accessible to code in the current task
342 | completionHandler(.success(result))
343 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:354:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
352 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
353 | ) {
354 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
355 | do {
356 | let result = try await tokenByIndex(contract: contract, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
357 | completionHandler(.success(result))
358 | } catch {
/Users/admin/builder/spi-builder-workspace/web3swift/src/ERC721/ERC721.swift:370:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
368 | completionHandler: @escaping (Result<BigUInt, Error>) -> Void
369 | ) {
370 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
371 | do {
372 | let result = try await tokenOfOwnerByIndex(contract: contract, owner: owner, index: index)
| `- note: closure captures 'self' which is accessible to code in the current task
373 | completionHandler(.success(result))
374 | } catch {
[791/795] Compiling web3_zksync ABIFunction+ZKSync.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/ZKSync/ZKSyncTransaction.swift:14:23: warning: static property 'defaultGasPerPubDataLimit' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public struct ZKSyncTransaction: Equatable {
13 | public static let eip712Type: UInt8 = 0x71
14 | public static let defaultGasPerPubDataLimit: BigUInt = 50000
| `- warning: static property 'defaultGasPerPubDataLimit' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
15 | public let txType: UInt8 = Self.eip712Type
16 | public var from: EthereumAddress
/Users/admin/builder/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigUInt.swift:16:15: note: struct 'BigUInt' does not conform to the 'Sendable' protocol
14 | /// This particular big integer type uses base-2^64 digits to represent integers; you can think of it as a wrapper
15 | /// around `Array<UInt64>`. (In fact, `BigUInt` only uses an array if there are more than two digits.)
16 | public struct BigUInt: UnsignedInteger {
| `- note: struct 'BigUInt' does not conform to the 'Sendable' protocol
17 | /// The type representing a digit in `BigUInt`'s underlying number system.
18 | public typealias Word = UInt
/Users/admin/builder/spi-builder-workspace/web3swift/src/ZKSync/ZKSyncTransaction.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
5 |
6 | import web3
7 | import BigInt
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
8 | import Foundation
9 | import GenericJSON
:
12 | public struct ZKSyncTransaction: Equatable {
13 | public static let eip712Type: UInt8 = 0x71
14 | public static let defaultGasPerPubDataLimit: BigUInt = 50000
| |- note: annotate 'defaultGasPerPubDataLimit' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public let txType: UInt8 = Self.eip712Type
16 | public var from: EthereumAddress
/Users/admin/builder/spi-builder-workspace/web3swift/src/ZKSync/ZKSyncTransaction.swift:72:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ZKSyncTransaction.PaymasterParams' may have shared mutable state; this is an error in the Swift 6 language mode
55 | }
56 |
57 | public struct PaymasterParams: Equatable {
| `- note: consider making struct 'PaymasterParams' conform to the 'Sendable' protocol
58 | public var paymaster: EthereumAddress
59 | public var input: Data
:
70 | }
71 |
72 | public static let none: PaymasterParams = .init(paymaster: .zero, input: Data())
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ZKSyncTransaction.PaymasterParams' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | }
74 |
[792/795] Compiling web3_zksync EthereumAccount+ZKSync.swift
[793/795] Emitting module web3_zksync
/Users/admin/builder/spi-builder-workspace/web3swift/src/ZKSync/ZKSyncTransaction.swift:14:23: warning: static property 'defaultGasPerPubDataLimit' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public struct ZKSyncTransaction: Equatable {
13 | public static let eip712Type: UInt8 = 0x71
14 | public static let defaultGasPerPubDataLimit: BigUInt = 50000
| `- warning: static property 'defaultGasPerPubDataLimit' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
15 | public let txType: UInt8 = Self.eip712Type
16 | public var from: EthereumAddress
/Users/admin/builder/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigUInt.swift:16:15: note: struct 'BigUInt' does not conform to the 'Sendable' protocol
14 | /// This particular big integer type uses base-2^64 digits to represent integers; you can think of it as a wrapper
15 | /// around `Array<UInt64>`. (In fact, `BigUInt` only uses an array if there are more than two digits.)
16 | public struct BigUInt: UnsignedInteger {
| `- note: struct 'BigUInt' does not conform to the 'Sendable' protocol
17 | /// The type representing a digit in `BigUInt`'s underlying number system.
18 | public typealias Word = UInt
/Users/admin/builder/spi-builder-workspace/web3swift/src/ZKSync/ZKSyncTransaction.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
5 |
6 | import web3
7 | import BigInt
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
8 | import Foundation
9 | import GenericJSON
:
12 | public struct ZKSyncTransaction: Equatable {
13 | public static let eip712Type: UInt8 = 0x71
14 | public static let defaultGasPerPubDataLimit: BigUInt = 50000
| |- note: annotate 'defaultGasPerPubDataLimit' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public let txType: UInt8 = Self.eip712Type
16 | public var from: EthereumAddress
/Users/admin/builder/spi-builder-workspace/web3swift/src/ZKSync/ZKSyncTransaction.swift:72:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ZKSyncTransaction.PaymasterParams' may have shared mutable state; this is an error in the Swift 6 language mode
55 | }
56 |
57 | public struct PaymasterParams: Equatable {
| `- note: consider making struct 'PaymasterParams' conform to the 'Sendable' protocol
58 | public var paymaster: EthereumAddress
59 | public var input: Data
:
70 | }
71 |
72 | public static let none: PaymasterParams = .init(paymaster: .zero, input: Data())
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ZKSyncTransaction.PaymasterParams' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | }
74 |
[794/795] Compiling web3_zksync ZKSyncProvider.swift
[795/795] Compiling web3_zksync ZKSyncTransaction.swift
/Users/admin/builder/spi-builder-workspace/web3swift/src/ZKSync/ZKSyncTransaction.swift:14:23: warning: static property 'defaultGasPerPubDataLimit' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
12 | public struct ZKSyncTransaction: Equatable {
13 | public static let eip712Type: UInt8 = 0x71
14 | public static let defaultGasPerPubDataLimit: BigUInt = 50000
| `- warning: static property 'defaultGasPerPubDataLimit' is not concurrency-safe because non-'Sendable' type 'BigUInt' may have shared mutable state; this is an error in the Swift 6 language mode
15 | public let txType: UInt8 = Self.eip712Type
16 | public var from: EthereumAddress
/Users/admin/builder/spi-builder-workspace/.build/checkouts/BigInt/Sources/BigUInt.swift:16:15: note: struct 'BigUInt' does not conform to the 'Sendable' protocol
14 | /// This particular big integer type uses base-2^64 digits to represent integers; you can think of it as a wrapper
15 | /// around `Array<UInt64>`. (In fact, `BigUInt` only uses an array if there are more than two digits.)
16 | public struct BigUInt: UnsignedInteger {
| `- note: struct 'BigUInt' does not conform to the 'Sendable' protocol
17 | /// The type representing a digit in `BigUInt`'s underlying number system.
18 | public typealias Word = UInt
/Users/admin/builder/spi-builder-workspace/web3swift/src/ZKSync/ZKSyncTransaction.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
5 |
6 | import web3
7 | import BigInt
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'BigInt'
8 | import Foundation
9 | import GenericJSON
:
12 | public struct ZKSyncTransaction: Equatable {
13 | public static let eip712Type: UInt8 = 0x71
14 | public static let defaultGasPerPubDataLimit: BigUInt = 50000
| |- note: annotate 'defaultGasPerPubDataLimit' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public let txType: UInt8 = Self.eip712Type
16 | public var from: EthereumAddress
/Users/admin/builder/spi-builder-workspace/web3swift/src/ZKSync/ZKSyncTransaction.swift:72:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ZKSyncTransaction.PaymasterParams' may have shared mutable state; this is an error in the Swift 6 language mode
55 | }
56 |
57 | public struct PaymasterParams: Equatable {
| `- note: consider making struct 'PaymasterParams' conform to the 'Sendable' protocol
58 | public var paymaster: EthereumAddress
59 | public var input: Data
:
70 | }
71 |
72 | public static let none: PaymasterParams = .init(paymaster: .zero, input: Data())
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'ZKSyncTransaction.PaymasterParams' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 | }
74 |
Build complete! (46.38s)
Build complete.
{
"dependencies" : [
{
"identity" : "bigint",
"requirement" : {
"range" : [
{
"lower_bound" : "5.3.0",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/attaswift/BigInt"
},
{
"identity" : "generic-json-swift",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/iwill/generic-json-swift"
},
{
"identity" : "secp256k1.swift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.6.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/GigaBitcoin/secp256k1.swift.git"
},
{
"identity" : "websocket-kit",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/vapor/websocket-kit.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "web3.swift",
"name" : "web3.swift",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "web3.swift",
"targets" : [
"web3"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "web3-zksync.swift",
"targets" : [
"web3-zksync"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "web3swiftTests",
"module_type" : "SwiftTarget",
"name" : "web3swiftTests",
"path" : "web3sTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/web3sTests/Account/cryptofights_712.json",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/web3sTests/Account/ethermail_signTypedDataV4.json",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/web3sTests/Account/real_word_opensea_signTypedDataV4.json",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/web3sTests/Resources/rlptests.json",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Account/EthereumAccount+SignTransactionTests.swift",
"Account/EthereumAccount+SignTypedTests.swift",
"Account/EthereumAccountTests.swift",
"Account/EthereumKeyStorageTests.swift",
"Address/EthereumAddressTests.swift",
"Client/EthereumClientTests.swift",
"Contract/ABIDecoderTests.swift",
"Contract/ABIEncoderTests.swift",
"Contract/ABIEventTests.swift",
"Contract/ABIFunctionEncoderTests.swift",
"Contract/ABIFunctionTests.swift",
"ENS/ENSOffchainTests.swift",
"ENS/ENSTests.swift",
"ERC1271/ERC1271Tests.swift",
"ERC165/ERC165Tests.swift",
"ERC20/ERC20Tests.swift",
"ERC721/ERC721Tests.swift",
"Extensions/ByteExtensionsTests.swift",
"Extensions/Data+RandomTests.swift",
"Extensions/HexExtensionsTests.swift",
"Extensions/KeccakExtensionsTests.swift",
"Extensions/String+NumericTests.swift",
"Mocks/TestEthereumKeyStorage.swift",
"Multicall/MulticallTests.swift",
"OffchainLookup/OffchainLookupTests.swift",
"SIWE/SIWETests.swift",
"SIWE/SiweMessageTests.swift",
"SIWE/SiweVerifierTests.swift",
"TestConfig.swift",
"Transaction/TransactionTests.swift",
"Utils/AesUtilTests.swift",
"Utils/HexUtilTests.swift",
"Utils/KeyDerivationTests.swift",
"Utils/KeyUtilTests.swift",
"Utils/KeystoreUtilTests.swift",
"Utils/RLPTests.swift",
"ZKSync/EthereumClient+ZKSyncTests.swift",
"ZKSync/ZKSyncTransactionTests.swift"
],
"target_dependencies" : [
"web3",
"web3-zksync"
],
"type" : "test"
},
{
"c99name" : "web3_zksync",
"module_type" : "SwiftTarget",
"name" : "web3-zksync",
"path" : "web3swift/src/ZKSync",
"product_memberships" : [
"web3-zksync.swift"
],
"sources" : [
"ABIFunction+ZKSync.swift",
"EthereumAccount+ZKSync.swift",
"ZKSyncProvider.swift",
"ZKSyncTransaction.swift"
],
"target_dependencies" : [
"web3"
],
"type" : "library"
},
{
"c99name" : "web3",
"module_type" : "SwiftTarget",
"name" : "web3",
"path" : "web3swift/src",
"product_dependencies" : [
"BigInt",
"GenericJSON",
"secp256k1",
"WebSocketKit",
"Logging"
],
"product_memberships" : [
"web3.swift",
"web3-zksync.swift"
],
"sources" : [
"Account/EthereumAccount+SignTransaction.swift",
"Account/EthereumAccount.swift",
"Account/EthereumKeyStorage+Password.swift",
"Account/EthereumKeyStorage.swift",
"Account/Signature.swift",
"Account/TypedData.swift",
"Client/BaseEthereumClient+Call.swift",
"Client/BaseEthereumClient.swift",
"Client/HTTP/EthereumHttpClient.swift",
"Client/Models/EthereumAddress.swift",
"Client/Models/EthereumBlock.swift",
"Client/Models/EthereumBlockInfo.swift",
"Client/Models/EthereumHeader.swift",
"Client/Models/EthereumLog.swift",
"Client/Models/EthereumNetwork.swift",
"Client/Models/EthereumSubscription.swift",
"Client/Models/EthereumSyncStatus.swift",
"Client/Models/EthereumTransaction.swift",
"Client/Models/EthereumTransactionReceipt.swift",
"Client/NetworkProviders/EventLoopGroupProvider.swift",
"Client/NetworkProviders/HttpNetworkProvider.swift",
"Client/NetworkProviders/JSONRPC.swift",
"Client/NetworkProviders/NetworkProviderProtocol.swift",
"Client/NetworkProviders/WebSocketConfiguration.swift",
"Client/NetworkProviders/WebSocketNetworkProvider.swift",
"Client/Protocols/EthereumClientProtocol.swift",
"Client/Protocols/EthereumProvider.swift",
"Client/RecursiveLogCollector.swift",
"Client/WSS/EthereumWebSocketClient.swift",
"Contract/ABIDecoder.swift",
"Contract/ABIEncoder.swift",
"Contract/ABIRawType.swift",
"Contract/Statically Typed/ABIDecoder+Static.swift",
"Contract/Statically Typed/ABIEncoder+Static.swift",
"Contract/Statically Typed/ABIEvent.swift",
"Contract/Statically Typed/ABIFunction.swift",
"Contract/Statically Typed/ABIFunctionEncodable.swift",
"Contract/Statically Typed/ABIFunctionEncoder.swift",
"Contract/Statically Typed/ABIRawType+Static.swift",
"Contract/Statically Typed/ABIRevertError.swift",
"Contract/Statically Typed/ABITuple.swift",
"Contract/Statically Typed/EthereumClient+Static.swift",
"ENS/ENSContracts.swift",
"ENS/ENSMultiResolver.swift",
"ENS/ENSResolver.swift",
"ENS/ENSResponses.swift",
"ENS/EthereumNameService.swift",
"ERC1271/ERC1271.swift",
"ERC1271/ERC1271Error.swift",
"ERC1271/ERC1271Functions.swift",
"ERC1271/ERC1271Responses.swift",
"ERC165/ERC165.swift",
"ERC20/ERC20.swift",
"ERC20/ERC20Events.swift",
"ERC20/ERC20Functions.swift",
"ERC20/ERC20Responses.swift",
"ERC721/ERC721.swift",
"ERC721/ERC721Events.swift",
"ERC721/ERC721Functions.swift",
"ERC721/ERC721Responses.swift",
"Extensions/ByteExtensions.swift",
"Extensions/Data+Random.swift",
"Extensions/Extensions.swift",
"Extensions/HexExtensions.swift",
"Extensions/KeccakExtensions.swift",
"Extensions/ResultExtensions.swift",
"Extensions/String+Numeric.swift",
"Extensions/URLSessionExtensions.swift",
"Multicall/Multicall.swift",
"Multicall/MulticallContract.swift",
"OffchainLookup/OffchainLookup.swift",
"SIWE/EthereumAccount+SignSIWERequest.swift",
"SIWE/SiweMessage+Codable.swift",
"SIWE/SiweMessage+RegEx.swift",
"SIWE/SiweMessage+String.swift",
"SIWE/SiweMessage+Validation.swift",
"SIWE/SiweMessage.swift",
"SIWE/SiweVerifier.swift",
"Utils/AesUtil.swift",
"Utils/HexUtil.swift",
"Utils/KeyDerivation.swift",
"Utils/KeyUtil.swift",
"Utils/KeystoreUtil.swift",
"Utils/PropertyWrappers.swift",
"Utils/RLP.swift"
],
"target_dependencies" : [
"keccaktiny",
"aes",
"Internal_CryptoSwift_PBDKF2"
],
"type" : "library"
},
{
"c99name" : "keccaktiny",
"module_type" : "ClangTarget",
"name" : "keccaktiny",
"path" : "web3swift/lib/keccak-tiny",
"product_memberships" : [
"web3.swift",
"web3-zksync.swift"
],
"sources" : [
"keccak-tiny.c"
],
"type" : "library"
},
{
"c99name" : "aes",
"module_type" : "ClangTarget",
"name" : "aes",
"path" : "web3swift/lib/aes",
"product_memberships" : [
"web3.swift",
"web3-zksync.swift"
],
"sources" : [
"aes.c"
],
"type" : "library"
},
{
"c99name" : "Internal_CryptoSwift_PBDKF2",
"module_type" : "SwiftTarget",
"name" : "Internal_CryptoSwift_PBDKF2",
"path" : "web3swift/lib/CryptoSwift",
"product_memberships" : [
"web3.swift",
"web3-zksync.swift"
],
"sources" : [
"Array+Extensions.swift",
"BatchedCollection.swift",
"Generics.swift",
"HMAC.swift",
"Int+Extensions.swift",
"PBKDF2.swift",
"SHA2.swift",
"UInt32+Extensions.swift",
"UInt64+Extensions.swift",
"Utils.swift",
"ZeroPadding.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.