diff --git a/Sources/EvmKit/Core/Signature.swift b/Sources/EvmKit/Core/Signature.swift index ce413e3..d6bb030 100644 --- a/Sources/EvmKit/Core/Signature.swift +++ b/Sources/EvmKit/Core/Signature.swift @@ -5,7 +5,7 @@ public class Signature { let r: BigUInt let s: BigUInt - init(v: Int, r: BigUInt, s: BigUInt) { + public init(v: Int, r: BigUInt, s: BigUInt) { self.v = v self.r = r self.s = s diff --git a/Sources/EvmKit/Core/TransactionBuilder.swift b/Sources/EvmKit/Core/TransactionBuilder.swift index e35ac67..d01b71a 100644 --- a/Sources/EvmKit/Core/TransactionBuilder.swift +++ b/Sources/EvmKit/Core/TransactionBuilder.swift @@ -1,7 +1,7 @@ import Foundation import HsCryptoKit -class TransactionBuilder { +public class TransactionBuilder { private let chainId: Int private let address: Address @@ -42,7 +42,7 @@ class TransactionBuilder { } extension TransactionBuilder { - static func encode(rawTransaction: RawTransaction, signature: Signature?, chainId: Int = 1) -> Data { + public static func encode(rawTransaction: RawTransaction, signature: Signature?, chainId: Int = 1) -> Data { let signatureArray: [Any?] = [ signature?.v, signature?.r, @@ -77,4 +77,4 @@ extension TransactionBuilder { return Data([0x02]) + encodedTransaction } } -} \ No newline at end of file +}