Build Information
Failed to build Web3swift, reference 3.3.2 (b9c771), with Swift 6.3 for Linux on 17 Apr 2026 02:01:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[203/254] Compiling Web3Core ABIEncoding.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[204/254] Compiling Web3Core ABIError.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[205/254] Compiling Web3Core ABIParameterTypes.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[206/254] Compiling Web3Core ABIParsing.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[207/254] Compiling Web3Core ABITypeParser.swift
/host/spi-builder-workspace/Sources/Web3Core/Contract/ContractProtocol.swift:382:56: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
380 | public func decodeEthError(_ data: Data) -> [String: Any]? {
381 | guard data.count >= 4,
382 | let err = errors.first(where: { $0.value.methodEncoding == data[0..<4] })?.value else {
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
383 | return nil
384 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:210:16: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
208 | guard parameters.count == inputs.count,
209 | let data = ABIEncoder.encode(types: inputs, values: parameters) else { return nil }
210 | return methodEncoding + data
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
211 | }
212 | }
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIElements.swift:375:68: warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
373 | extension ABI.Element.Function {
374 | public func decodeInputData(_ rawData: Data) -> [String: Any]? {
375 | return ABIDecoder.decodeInputData(rawData, methodEncoding: methodEncoding, inputs: inputs)
| |- warning: 'methodEncoding' is deprecated: Please, use 'selectorEncoded' property instead. [#DeprecatedDeclaration]
| `- note: use 'selectorEncoded' instead
376 | }
377 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:468:45: warning: expression implicitly coerced from 'Data?' to 'Any'
466 | return Data(v ? [0b1] : [0b0])
467 | } else if let v = value as? Int {
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:470:45: warning: expression implicitly coerced from 'Data?' to 'Any'
468 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 256)!)!
469 | } else if let v = value as? Int8 {
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:472:45: warning: expression implicitly coerced from 'Data?' to 'Any'
470 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 8))!
471 | } else if let v = value as? Int16 {
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:474:45: warning: expression implicitly coerced from 'Data?' to 'Any'
472 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 16)!)!
473 | } else if let v = value as? Int32 {
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:476:45: warning: expression implicitly coerced from 'Data?' to 'Any'
474 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 32)!)!
475 | } else if let v = value as? Int64 {
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:478:45: warning: expression implicitly coerced from 'Data?' to 'Any'
476 | return ABIEncoder.convertToData(BigInt(exactly: v)?.abiEncode(bits: 64)!)!
477 | } else if let v = value as? UInt {
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:480:45: warning: expression implicitly coerced from 'Data?' to 'Any'
478 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 256)!)!
479 | } else if let v = value as? UInt8 {
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:482:45: warning: expression implicitly coerced from 'Data?' to 'Any'
480 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 8)!)!
481 | } else if let v = value as? UInt16 {
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:484:45: warning: expression implicitly coerced from 'Data?' to 'Any'
482 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 16)!)!
483 | } else if let v = value as? UInt32 {
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/ABIEncoding.swift:486:45: warning: expression implicitly coerced from 'Data?' to 'Any'
484 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 32)!)!
485 | } else if let v = value as? UInt64 {
486 | return ABIEncoder.convertToData(BigUInt(exactly: v)?.abiEncode(bits: 64)!)!
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Data?' to 'Any'
487 | } else if let data = ABIEncoder.convertToData(value) {
488 | return data
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[208/254] Compiling Web3Core Sequence+ABIExtension.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
29 | appendFunction(function.name!, function)
30 | appendFunction(function.signature, function)
31 | appendFunction(function.methodString.addHexPrefix().lowercased(), function)
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
32 |
33 | /// ABI cannot have two functions with exactly the same name and input arguments
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
58 | errors[error.name] = error
59 | errors[error.signature] = error
60 | errors[error.methodString.addHexPrefix().lowercased()] = error
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
61 | }
62 | return errors
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot find 'URLRequest' in scope
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: in call to function 'send(_:parameters:with:)'
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: generic parameter 'Result' could not be inferred
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: extraneous argument label 'uRLRequest:' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: 'send(_:parameters:with:)' declared here
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: missing argument for parameter 'parameters' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
121 | let (data, response) = try await session.data(for: uRLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
122 |
123 | guard 200 ..< 400 ~= response.statusCode else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[209/254] Compiling Web3Core EthereumAddress.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
29 | appendFunction(function.name!, function)
30 | appendFunction(function.signature, function)
31 | appendFunction(function.methodString.addHexPrefix().lowercased(), function)
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
32 |
33 | /// ABI cannot have two functions with exactly the same name and input arguments
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
58 | errors[error.name] = error
59 | errors[error.signature] = error
60 | errors[error.methodString.addHexPrefix().lowercased()] = error
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
61 | }
62 | return errors
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot find 'URLRequest' in scope
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: in call to function 'send(_:parameters:with:)'
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: generic parameter 'Result' could not be inferred
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: extraneous argument label 'uRLRequest:' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: 'send(_:parameters:with:)' declared here
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: missing argument for parameter 'parameters' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
121 | let (data, response) = try await session.data(for: uRLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
122 |
123 | guard 200 ..< 400 ~= response.statusCode else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[210/254] Compiling Web3Core APIRequest+ComputedProperties.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
29 | appendFunction(function.name!, function)
30 | appendFunction(function.signature, function)
31 | appendFunction(function.methodString.addHexPrefix().lowercased(), function)
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
32 |
33 | /// ABI cannot have two functions with exactly the same name and input arguments
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
58 | errors[error.name] = error
59 | errors[error.signature] = error
60 | errors[error.methodString.addHexPrefix().lowercased()] = error
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
61 | }
62 | return errors
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot find 'URLRequest' in scope
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: in call to function 'send(_:parameters:with:)'
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: generic parameter 'Result' could not be inferred
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: extraneous argument label 'uRLRequest:' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: 'send(_:parameters:with:)' declared here
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: missing argument for parameter 'parameters' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
121 | let (data, response) = try await session.data(for: uRLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
122 |
123 | guard 200 ..< 400 ~= response.statusCode else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[211/254] Compiling Web3Core APIRequest+Methods.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
29 | appendFunction(function.name!, function)
30 | appendFunction(function.signature, function)
31 | appendFunction(function.methodString.addHexPrefix().lowercased(), function)
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
32 |
33 | /// ABI cannot have two functions with exactly the same name and input arguments
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
58 | errors[error.name] = error
59 | errors[error.signature] = error
60 | errors[error.methodString.addHexPrefix().lowercased()] = error
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
61 | }
62 | return errors
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot find 'URLRequest' in scope
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: in call to function 'send(_:parameters:with:)'
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: generic parameter 'Result' could not be inferred
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: extraneous argument label 'uRLRequest:' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: 'send(_:parameters:with:)' declared here
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: missing argument for parameter 'parameters' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
121 | let (data, response) = try await session.data(for: uRLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
122 |
123 | guard 200 ..< 400 ~= response.statusCode else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[212/254] Compiling Web3Core APIRequest+UtilityTypes.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
29 | appendFunction(function.name!, function)
30 | appendFunction(function.signature, function)
31 | appendFunction(function.methodString.addHexPrefix().lowercased(), function)
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
32 |
33 | /// ABI cannot have two functions with exactly the same name and input arguments
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
58 | errors[error.name] = error
59 | errors[error.signature] = error
60 | errors[error.methodString.addHexPrefix().lowercased()] = error
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
61 | }
62 | return errors
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot find 'URLRequest' in scope
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: in call to function 'send(_:parameters:with:)'
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: generic parameter 'Result' could not be inferred
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: extraneous argument label 'uRLRequest:' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: 'send(_:parameters:with:)' declared here
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: missing argument for parameter 'parameters' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
121 | let (data, response) = try await session.data(for: uRLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
122 |
123 | guard 200 ..< 400 ~= response.statusCode else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[213/254] Compiling Web3Core APIRequest.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
29 | appendFunction(function.name!, function)
30 | appendFunction(function.signature, function)
31 | appendFunction(function.methodString.addHexPrefix().lowercased(), function)
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
32 |
33 | /// ABI cannot have two functions with exactly the same name and input arguments
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
58 | errors[error.name] = error
59 | errors[error.signature] = error
60 | errors[error.methodString.addHexPrefix().lowercased()] = error
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
61 | }
62 | return errors
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot find 'URLRequest' in scope
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: in call to function 'send(_:parameters:with:)'
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: generic parameter 'Result' could not be inferred
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: extraneous argument label 'uRLRequest:' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: 'send(_:parameters:with:)' declared here
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: missing argument for parameter 'parameters' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
121 | let (data, response) = try await session.data(for: uRLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
122 |
123 | guard 200 ..< 400 ~= response.statusCode else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[214/254] Compiling Web3Core APIRequestParameterType.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
29 | appendFunction(function.name!, function)
30 | appendFunction(function.signature, function)
31 | appendFunction(function.methodString.addHexPrefix().lowercased(), function)
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
32 |
33 | /// ABI cannot have two functions with exactly the same name and input arguments
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
58 | errors[error.name] = error
59 | errors[error.signature] = error
60 | errors[error.methodString.addHexPrefix().lowercased()] = error
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
61 | }
62 | return errors
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot find 'URLRequest' in scope
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: in call to function 'send(_:parameters:with:)'
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: generic parameter 'Result' could not be inferred
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: extraneous argument label 'uRLRequest:' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: 'send(_:parameters:with:)' declared here
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: missing argument for parameter 'parameters' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
121 | let (data, response) = try await session.data(for: uRLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
122 |
123 | guard 200 ..< 400 ~= response.statusCode else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[215/254] Compiling Web3Core RequestParameter+Encodable.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
29 | appendFunction(function.name!, function)
30 | appendFunction(function.signature, function)
31 | appendFunction(function.methodString.addHexPrefix().lowercased(), function)
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
32 |
33 | /// ABI cannot have two functions with exactly the same name and input arguments
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
58 | errors[error.name] = error
59 | errors[error.signature] = error
60 | errors[error.methodString.addHexPrefix().lowercased()] = error
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
61 | }
62 | return errors
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot find 'URLRequest' in scope
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: in call to function 'send(_:parameters:with:)'
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: generic parameter 'Result' could not be inferred
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: extraneous argument label 'uRLRequest:' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: 'send(_:parameters:with:)' declared here
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: missing argument for parameter 'parameters' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
121 | let (data, response) = try await session.data(for: uRLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
122 |
123 | guard 200 ..< 400 ~= response.statusCode else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[216/254] Compiling Web3Core RequestParameter+RawRepresentable.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
29 | appendFunction(function.name!, function)
30 | appendFunction(function.signature, function)
31 | appendFunction(function.methodString.addHexPrefix().lowercased(), function)
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
32 |
33 | /// ABI cannot have two functions with exactly the same name and input arguments
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
58 | errors[error.name] = error
59 | errors[error.signature] = error
60 | errors[error.methodString.addHexPrefix().lowercased()] = error
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
61 | }
62 | return errors
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot find 'URLRequest' in scope
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: in call to function 'send(_:parameters:with:)'
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: generic parameter 'Result' could not be inferred
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: extraneous argument label 'uRLRequest:' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: 'send(_:parameters:with:)' declared here
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: missing argument for parameter 'parameters' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
121 | let (data, response) = try await session.data(for: uRLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
122 |
123 | guard 200 ..< 400 ~= response.statusCode else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[217/254] Compiling Web3Core RequestParameter.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:31:37: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
29 | appendFunction(function.name!, function)
30 | appendFunction(function.signature, function)
31 | appendFunction(function.methodString.addHexPrefix().lowercased(), function)
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
32 |
33 | /// ABI cannot have two functions with exactly the same name and input arguments
/host/spi-builder-workspace/Sources/Web3Core/EthereumABI/Sequence+ABIExtension.swift:60:26: warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
58 | errors[error.name] = error
59 | errors[error.signature] = error
60 | errors[error.methodString.addHexPrefix().lowercased()] = error
| |- warning: 'methodString' is deprecated: Please, use 'selector' property instead. [#DeprecatedDeclaration]
| `- note: use 'selector' instead
61 | }
62 | return errors
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:82:85: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:41: error: cannot find type 'URLRequest' in scope
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:120:67: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | let (data, response) = try await session.data(for: uRLRequest)
122 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:26: error: cannot find 'URLRequest' in scope
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot find 'URLRequest' in scope
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:83:70: error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
81 |
82 | static func setupRequest(for body: RequestBody, with provider: Web3Provider) -> URLRequest {
83 | var urlRequest = URLRequest(url: provider.url, cachePolicy: .reloadIgnoringCacheData)
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringCacheData'
84 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
85 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:24: error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: cannot assign value of type 'APIResponse<Result>' to type 'Data'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:30: error: generic parameter 'Result' could not be inferred
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: in call to function 'send(_:parameters:with:)'
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: generic parameter 'Result' could not be inferred
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:34: error: extraneous argument label 'uRLRequest:' in call
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: extraneous argument label 'uRLRequest:' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:57: error: missing argument for parameter 'parameters' in call
89 | }
90 |
91 | public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
| `- note: 'send(_:parameters:with:)' declared here
92 | let body = RequestBody(method: method, params: parameters)
93 | let uRLRequest = setupRequest(for: body, with: provider)
:
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: missing argument for parameter 'parameters' in call
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:97:74: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
95 | let data: Data
96 | do {
97 | data = try await send(uRLRequest: uRLRequest, with: provider.session)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'Web3Provider'
98 | } catch Web3Error.rpcError(let error) {
99 | let responseAsString = try checkError(method: method, error: error)
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift:121:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
119 |
120 | public static func send(uRLRequest: URLRequest, with session: URLSession) async throws -> Data {
121 | let (data, response) = try await session.data(for: uRLRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
122 |
123 | guard 200 ..< 400 ~= response.statusCode else {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[218/254] Compiling Web3Core Block.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[219/254] Compiling Web3Core BlockNumber.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[220/254] Compiling Web3Core Event+Protocol.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[221/254] Compiling Web3Core EventLog.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[222/254] Compiling Web3Core SECP256k1.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[223/254] Compiling Web3Core TransactionDetails.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[224/254] Compiling Web3Core TransactionInBlock.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[225/254] Compiling Web3Core TransactionReceipt.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[226/254] Compiling Web3Core TxPoolContent.swift
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:28: error: cannot find 'SecRandomCopyBytes' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:347:47: error: cannot find 'kSecRandomDefault' in scope
345 | if let mutableRBytes = mutableRBBytes.baseAddress, mutableRBBytes.count > 0 {
346 | let mutableBytes = mutableRBytes.assumingMemoryBound(to: UInt8.self)
347 | return SecRandomCopyBytes(kSecRandomDefault, length, mutableBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
348 | } else {
349 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Structure/SECP256k1.swift:352:41: error: cannot find 'errSecSuccess' in scope
350 | }
351 | }
352 | if let res = result, res == errSecSuccess {
| `- error: cannot find 'errSecSuccess' in scope
353 | return data
354 | } else {
[227/254] Compiling Web3Core EIP2930Compatible.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[228/254] Compiling Web3Core EthereumBloomFilter.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[229/254] Compiling Web3Core EventfilterParameters.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[230/254] Compiling Web3Core Policies.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[231/254] Compiling Web3Core TransactionMetadata.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[232/254] Compiling Web3Core Array+Extension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[233/254] Compiling Web3Core BigUInt+Extension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[234/254] Compiling Web3Core CryptoExtension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[235/254] Compiling Web3Core Data+Extension.swift
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:22: error: cannot find 'SecRandomCopyBytes' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'SecRandomCopyBytes' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:57:41: error: cannot find 'kSecRandomDefault' in scope
55 | static func randomBytes(length: Int) -> Data? {
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
| `- error: cannot find 'kSecRandomDefault' in scope
58 | guard status == errSecSuccess else {
59 | return nil
/host/spi-builder-workspace/Sources/Web3Core/Utility/Data+Extension.swift:58:25: error: cannot find 'errSecSuccess' in scope
56 | var entropyBytes = [UInt8](repeating: 0, count: length)
57 | let status = SecRandomCopyBytes(kSecRandomDefault, entropyBytes.count, &entropyBytes)
58 | guard status == errSecSuccess else {
| `- error: cannot find 'errSecSuccess' in scope
59 | return nil
60 | }
[236/254] Compiling Web3Core Async+BackwardCapability.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[237/254] Compiling Web3Core HexDecodable+Extensions.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[238/254] Compiling Web3Core HexDecodableProtocols.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[239/254] Compiling Web3Core IntegerInitableWithRadix.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[240/254] Compiling Web3Core AbstractKeystore.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[241/254] Compiling Web3Core BIP32HDNode.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[242/254] Compiling Web3Core BIP32Keystore.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[243/254] Compiling Web3Core BIP39+WordLists.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[244/254] Compiling Web3Core BIP39.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[245/254] Compiling Web3Core BIP44.swift
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:12:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 | @available(iOS, obsoleted: 15.0, message: "Use the built-in API instead")
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
14 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/Web3Core/EthereumNetwork/Utility/Async+BackwardCapability.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | @available(macOS, obsoleted: 12.0, message: "Use the built-in API instead")
12 | extension URLSession {
13 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
14 | try await withCheckedThrowingContinuation { continuation in
15 | let dataTask = self.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[246/254] Compiling Web3Core Decodable+Extensions.swift
[247/254] Compiling Web3Core Dictionary+Extension.swift
[248/254] Compiling Web3Core Encodable+Extensions.swift
[249/254] Compiling Web3Core NSRegularExpression+Extension.swift
[250/254] Compiling Web3Core NativeTypesEncoding+Extension.swift
[251/254] Compiling Web3Core RIPEMD160+StackOveflow.swift
[252/254] Compiling Web3Core String+Extension.swift
[253/254] Compiling Web3Core Utilities.swift
[254/254] Compiling Web3Core Web3Error.swift
BUILD FAILURE 6.3 linux