Skip to content

Commit 02d7e06

Browse files
committed
[TIDY] Public APIs
1 parent 22d094d commit 02d7e06

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

web3swift/src/Client/JSONRPC.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ struct JSONRPCRequest<T: Encodable>: Encodable {
2020
}
2121

2222
public struct JSONRPCResult<T: Decodable>: Decodable {
23-
var id: Int
24-
var jsonrpc: String
25-
var result: T
23+
public var id: Int
24+
public var jsonrpc: String
25+
public var result: T
2626
}
2727

2828
public struct JSONRPCErrorDetail: Decodable, Equatable, CustomStringConvertible {
29-
var code: Int
30-
var message: String
29+
public var code: Int
30+
public var message: String
3131

3232
public init(
3333
code: Int,
@@ -43,9 +43,9 @@ public struct JSONRPCErrorDetail: Decodable, Equatable, CustomStringConvertible
4343
}
4444

4545
public struct JSONRPCErrorResult: Decodable {
46-
var id: Int
47-
var jsonrpc: String
48-
var error: JSONRPCErrorDetail
46+
public var id: Int
47+
public var jsonrpc: String
48+
public var error: JSONRPCErrorDetail
4949
}
5050

5151
public enum JSONRPCErrorCode {
@@ -62,7 +62,7 @@ public enum JSONRPCError: Error {
6262
case unknownError
6363
case noResult
6464

65-
var isExecutionError: Bool {
65+
public var isExecutionError: Bool {
6666
switch self {
6767
case .executionError:
6868
return true

0 commit comments

Comments
 (0)