Skip to content

Commit 0a0a799

Browse files
committed
bug fix, public access given to native structs fields
1 parent 551d3f7 commit 0a0a799

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

web3swift/BlockExplorer/Classes/BlockExplorer+GetTransactionHistory.swift

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,22 @@ public struct Response: Decodable {
6363

6464
public struct TransactionHistoryRecord: Decodable {
6565

66-
let id: String
67-
let hash: Data
68-
let block: BigUInt
69-
let addressFrom: EthereumAddress
70-
let addressTo: EthereumAddress
71-
let isoTime: String
72-
let type: TransactionType
73-
let status: TransactionStatus
74-
let error: String
75-
let isContract: Bool
76-
let isInner: Bool
77-
let value: BigUInt // in wei
78-
let token: Token
79-
let txFee: BigUInt // in wei
80-
let gasUsed: BigUInt // in wei
81-
let gasCost: BigUInt // in wei
66+
public let id: String
67+
public let hash: Data
68+
public let block: BigUInt
69+
public let addressFrom: EthereumAddress
70+
public let addressTo: EthereumAddress
71+
public let isoTime: String
72+
public let type: TransactionType
73+
public let status: TransactionStatus
74+
public let error: String
75+
public let isContract: Bool
76+
public let isInner: Bool
77+
public let value: BigUInt // in wei
78+
public let token: Token
79+
public let txFee: BigUInt // in wei
80+
public let gasUsed: BigUInt // in wei
81+
public let gasCost: BigUInt // in wei
8282

8383
public init(from decoder: Decoder) throws {
8484
let container = try decoder.container(keyedBy: CodingKeys.self)
@@ -173,10 +173,10 @@ public struct TransactionHistoryRecord: Decodable {
173173
}
174174

175175
public struct Token: Decodable {
176-
let address: EthereumAddress?
177-
let name: String
178-
let symbol: String
179-
let decimal: Int
176+
public let address: EthereumAddress?
177+
public let name: String
178+
public let symbol: String
179+
public let decimal: Int
180180

181181
enum CodingKeys: String, CodingKey {
182182
case address = "addr"

0 commit comments

Comments
 (0)