Skip to content

Commit 585eba9

Browse files
fix: 'func encode(EncodeType)' made public as it's recommended as an alternative to 'func encode(forSignature: Bool = false, chainID: BigUInt? = nil)'
1 parent b8d54f6 commit 585eba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Core/Transaction/EthereumTransaction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public struct EthereumTransaction: CustomStringConvertible {
178178
public func encodeAsDictionary(from: EthereumAddress? = nil) -> TransactionParameters? { self.envelope.encodeAsDictionary(from: from) }
179179

180180
/// - Returns: a raw bytestream of the transaction, encoded according to the transactionType
181-
func encode(for type: EncodeType = .transaction) -> Data? {
181+
public func encode(for type: EncodeType = .transaction) -> Data? {
182182
return self.envelope.encode(for: type)
183183
}
184184
}

0 commit comments

Comments
 (0)