Skip to content

Commit 35f6436

Browse files
Add Policies initializing for CodableTransaction
1 parent ae68334 commit 35f6436

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/Core/Transaction/CodableTransaction.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,12 @@ extension CodableTransaction {
427427
self.maxFeePerGas = maxFeePerGas
428428
self.maxPriorityFeePerGas = maxPriorityFeePerGas
429429
self.accessList = accessList
430+
self.gasLimitPolicy = .automatic
431+
self.noncePolicy = .pending
432+
self.gasPricePolicy = .automatic
433+
self.maxFeePerGasPolicy = .automatic
434+
self.maxPriorityFeePerGasPolicy = .automatic
435+
430436
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)
431437
}
432438
}

0 commit comments

Comments
 (0)