File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Sources/web3swift/Transaction Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,30 @@ public struct EthereumParameters {
49
49
50
50
/// access list for contract execution (EIP-2930 and EIP-1559 only)
51
51
public var accessList : [ AccessListEntry ] ?
52
+
53
+ public init ( type: TransactionType ? = nil ,
54
+ to: EthereumAddress ? = nil ,
55
+ nonce: BigUInt ? = nil ,
56
+ chainID: BigUInt ? = nil ,
57
+ value: BigUInt ? = nil ,
58
+ data: Data ? = nil ,
59
+ gasLimit: BigUInt ? = nil ,
60
+ gasPrice: BigUInt ? = nil ,
61
+ maxFeePerGas: BigUInt ? = nil ,
62
+ maxPriorityFeePerGas: BigUInt ? = nil ,
63
+ accessList: [ AccessListEntry ] ? = nil ) {
64
+ self . type = type
65
+ self . to = to
66
+ self . nonce = nonce
67
+ self . chainID = chainID
68
+ self . value = value
69
+ self . data = data
70
+ self . gasLimit = gasLimit
71
+ self . gasPrice = gasPrice
72
+ self . maxFeePerGas = maxFeePerGas
73
+ self . maxPriorityFeePerGas = maxPriorityFeePerGas
74
+ self . accessList = accessList
75
+ }
52
76
}
53
77
54
78
public extension EthereumParameters {
You can’t perform that action at this time.
0 commit comments