diff --git a/Sources/SolanaWalletAdapterKit/Deeplink/RequestTypes.swift b/Sources/SolanaWalletAdapterKit/Deeplink/RequestTypes.swift index 034c277..3ea9e91 100644 --- a/Sources/SolanaWalletAdapterKit/Deeplink/RequestTypes.swift +++ b/Sources/SolanaWalletAdapterKit/Deeplink/RequestTypes.swift @@ -59,3 +59,15 @@ public enum MessageDisplayFormat: String, Encodable, Sendable { case hex case utf8 } + +extension SolanaRPCClient.SendTransactionConfiguration { + public init(sendOptions: SendOptions? = nil, encoding: SolanaRPCClient.TransactionEncoding? = nil) { + self.init( + encoding: encoding, + skipPreflight: sendOptions?.skipPreflight, + preflightCommitment: sendOptions?.preflightCommitment, + maxRetries: sendOptions?.maxRetries, + minContextSlot: sendOptions?.minContextSlot + ) + } +}