Skip to content

Commit 912f32f

Browse files
committed
Change internal vars to public for codable transaction
1 parent 64d9220 commit 912f32f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/Core/Transaction/CodableTransaction.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,32 +62,32 @@ public struct CodableTransaction {
6262
// MARK: - Properties transaction type related either sends to a node if exist
6363

6464
/// the nonce for the transaction
65-
internal var nonce: BigUInt {
65+
public var nonce: BigUInt {
6666
get { return envelope.nonce }
6767
set { envelope.nonce = newValue }
6868
}
6969

7070
/// the max number of gas units allowed to process this transaction
71-
internal var gasLimit: BigUInt {
71+
public var gasLimit: BigUInt {
7272
get { return envelope.gasLimit }
7373
set { return envelope.gasLimit = newValue }
7474
}
7575

7676
/// the price per gas unit for the tranaction (Legacy and EIP-2930 only)
77-
internal var gasPrice: BigUInt? {
77+
public var gasPrice: BigUInt? {
7878
get { return envelope.gasPrice }
7979
set { return envelope.gasPrice = newValue }
8080
}
8181

8282
/// the max base fee per gas unit (EIP-1559 only)
8383
/// this value must be >= baseFee + maxPriorityFeePerGas
84-
internal var maxFeePerGas: BigUInt? {
84+
public var maxFeePerGas: BigUInt? {
8585
get { return envelope.maxFeePerGas }
8686
set { return envelope.maxFeePerGas = newValue }
8787
}
8888

8989
/// the maximum tip to pay the miner (EIP-1559 only)
90-
internal var maxPriorityFeePerGas: BigUInt? {
90+
public var maxPriorityFeePerGas: BigUInt? {
9191
get { return envelope.maxPriorityFeePerGas }
9292
set { return envelope.maxPriorityFeePerGas = newValue }
9393
}

0 commit comments

Comments
 (0)