@@ -407,7 +407,7 @@ extension CodableTransaction {
407
407
/// - nonce: nonce for this transaction (default 0)
408
408
/// - chainID: chainId the transaction belongs to (default: type specific)
409
409
/// - value: Native value for the transaction (default 0)
410
- /// - data: Payload data for the transaction (required )
410
+ /// - data: Payload data for the transaction (default 0 bytes )
411
411
/// - v: signature v parameter (default 1) - will get set properly once signed
412
412
/// - r: signature r parameter (default 0) - will get set properly once signed
413
413
/// - s: signature s parameter (default 0) - will get set properly once signed
@@ -417,14 +417,14 @@ extension CodableTransaction {
417
417
gasLimit: BigUInt = 0 , maxFeePerGas: BigUInt ? = nil , maxPriorityFeePerGas: BigUInt ? = nil , gasPrice: BigUInt ? = nil ,
418
418
accessList: [ AccessListEntry ] ? = nil , v: BigUInt = 1 , r: BigUInt = 0 , s: BigUInt = 0 ) {
419
419
self . accessList = accessList
420
- self . gasLimitPolicy = . automatic
421
- self . noncePolicy = . pending
422
- self . gasPricePolicy = . automatic
423
- self . maxFeePerGasPolicy = . automatic
424
- self . maxPriorityFeePerGasPolicy = . automatic
425
- self . callOnBlock = . latest
426
-
427
- self . envelope = EnvelopeFactory . createEnvelope ( type: type, to: to, nonce: nonce, chainID: chainID, value: value, data: data, gasLimit: gasLimit, maxFeePerGas: maxFeePerGas, maxPriorityFeePerGas: maxPriorityFeePerGas, gasPrice: gasPrice, accessList: accessList, v: v, r: r, s: s)
420
+ gasLimitPolicy = . automatic
421
+ noncePolicy = . pending
422
+ gasPricePolicy = . automatic
423
+ maxFeePerGasPolicy = . automatic
424
+ maxPriorityFeePerGasPolicy = . automatic
425
+ callOnBlock = . latest
426
+
427
+ envelope = EnvelopeFactory . createEnvelope ( type: type, to: to, nonce: nonce, chainID: chainID, value: value, data: data, gasLimit: gasLimit, maxFeePerGas: maxFeePerGas, maxPriorityFeePerGas: maxPriorityFeePerGas, gasPrice: gasPrice, accessList: accessList, v: v, r: r, s: s)
428
428
}
429
429
}
430
430
0 commit comments