We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c786c30 commit 6869702Copy full SHA for 6869702
Sources/Core/Transaction/EthereumTransaction.swift
@@ -399,8 +399,7 @@ extension EthereumTransaction {
399
400
@available(*, deprecated, message: "use encode() instead")
401
public func encode(forSignature: Bool = false, chainID: BigUInt? = nil) -> Data? {
402
- if forSignature == true { return self.envelope.encode(for: .signature) }
403
- return self.envelope.encode(for: .transaction)
+ envelope.encode(for: forSignature ? .signature : .transaction)
404
}
405
406
@available(*, deprecated, message: "use Decodable instead")
0 commit comments