Skip to content

Commit

Permalink
Merge pull request #172 from dnKaratzas/master
Browse files Browse the repository at this point in the history
Add Linux Swift 5.1 support
  • Loading branch information
DarthMike authored Feb 7, 2022
2 parents 3862991 + df230a9 commit d7b2b78
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web3sTests/ERC721/ERC721Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import XCTest
import BigInt
@testable import web3

#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

let tokenOwner = EthereumAddress("0x69F84b91E7107206E841748C2B52294A1176D45e")
let previousOwner = EthereumAddress("0x64d0ea4fc60f27e74f1a70aa6f39d403bbe56793")
let nonOwner = EthereumAddress("0x64d0eA4FC60f27E74f1a70Aa6f39D403bBe56792")
Expand Down
4 changes: 4 additions & 0 deletions web3swift/src/Client/EthereumClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
import Foundation
import BigInt

#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

public protocol EthereumClientProtocol {
init(url: URL, sessionConfig: URLSessionConfiguration)
init(url: URL)
Expand Down
4 changes: 4 additions & 0 deletions web3swift/src/Client/JSONRPC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

import Foundation

#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

struct JSONRPCRequest<T: Encodable>: Encodable {
let jsonrpc: String
let method: String
Expand Down
4 changes: 4 additions & 0 deletions web3swift/src/ERC721/ERC721.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
import Foundation
import BigInt

#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

public class ERC721: ERC165 {
public func balanceOf(contract: EthereumAddress,
address: EthereumAddress,
Expand Down

0 comments on commit d7b2b78

Please sign in to comment.