Skip to content

Commit dd700be

Browse files
Merge pull request #132 from dexon-foundation/develop
let some functions public for customization
2 parents 75079bd + 221b953 commit dd700be

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

web3swift/Promises/Classes/Promise+Batching.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class JSONRPCrequestDispatcher {
1616
private var lockQueue: DispatchQueue
1717
private var batches: [Batch] = [Batch]()
1818

19-
init(provider: Web3Provider, queue: DispatchQueue, policy: DispatchPolicy) {
19+
public init(provider: Web3Provider, queue: DispatchQueue, policy: DispatchPolicy) {
2020
self.provider = provider
2121
self.queue = queue
2222
self.policy = policy

web3swift/Web3/Classes/Web3+JSONRPC.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public struct Counter {
2424

2525
/// JSON RPC request structure for serialization and deserialization purposes.
2626
public struct JSONRPCrequest: Encodable {
27-
var jsonrpc: String = "2.0"
28-
var method: JSONRPCmethod?
29-
var params: JSONRPCparams?
30-
var id: UInt64 = Counter.increment()
27+
public var jsonrpc: String = "2.0"
28+
public var method: JSONRPCmethod?
29+
public var params: JSONRPCparams?
30+
public var id: UInt64 = Counter.increment()
3131

3232
enum CodingKeys: String, CodingKey {
3333
case jsonrpc

0 commit comments

Comments
 (0)