From 221b953af583b520387756e61a5a4f63176e2483 Mon Sep 17 00:00:00 2001 From: Scott Chou Date: Wed, 20 Mar 2019 18:45:39 +0800 Subject: [PATCH] let some functions public for customization --- web3swift/Promises/Classes/Promise+Batching.swift | 2 +- web3swift/Web3/Classes/Web3+JSONRPC.swift | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web3swift/Promises/Classes/Promise+Batching.swift b/web3swift/Promises/Classes/Promise+Batching.swift index 982efa0e9..010b3cc02 100755 --- a/web3swift/Promises/Classes/Promise+Batching.swift +++ b/web3swift/Promises/Classes/Promise+Batching.swift @@ -16,7 +16,7 @@ public class JSONRPCrequestDispatcher { private var lockQueue: DispatchQueue private var batches: [Batch] = [Batch]() - init(provider: Web3Provider, queue: DispatchQueue, policy: DispatchPolicy) { + public init(provider: Web3Provider, queue: DispatchQueue, policy: DispatchPolicy) { self.provider = provider self.queue = queue self.policy = policy diff --git a/web3swift/Web3/Classes/Web3+JSONRPC.swift b/web3swift/Web3/Classes/Web3+JSONRPC.swift index 37d6d9a86..652c03132 100755 --- a/web3swift/Web3/Classes/Web3+JSONRPC.swift +++ b/web3swift/Web3/Classes/Web3+JSONRPC.swift @@ -24,10 +24,10 @@ public struct Counter { /// JSON RPC request structure for serialization and deserialization purposes. public struct JSONRPCrequest: Encodable { - var jsonrpc: String = "2.0" - var method: JSONRPCmethod? - var params: JSONRPCparams? - var id: UInt64 = Counter.increment() + public var jsonrpc: String = "2.0" + public var method: JSONRPCmethod? + public var params: JSONRPCparams? + public var id: UInt64 = Counter.increment() enum CodingKeys: String, CodingKey { case jsonrpc