From 48c2e5bc1e1ab053ac360bf3a4f28555a85f75e7 Mon Sep 17 00:00:00 2001 From: William Jin Date: Thu, 27 Nov 2025 14:01:35 -0500 Subject: [PATCH 1/2] add initializer to map SendOptions into TransactionOptions --- .../Deeplink/RequestTypes.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Sources/SolanaWalletAdapterKit/Deeplink/RequestTypes.swift b/Sources/SolanaWalletAdapterKit/Deeplink/RequestTypes.swift index 034c277..f630025 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 TransactionOptions { + public init(sendOptions: SendOptions? = nil, encoding: TransactionEncoding? = nil) { + self.init( + encoding: encoding, + skipPreflight: sendOptions?.skipPreflight, + preflightCommitment: sendOptions?.preflightCommitment, + maxRetries: sendOptions?.maxRetries, + minContextSlot: sendOptions?.minContextSlot + ) + } +} From 25c3b8b6521124f6ca56acd8b8a402f2deab047d Mon Sep 17 00:00:00 2001 From: Dan Chiem Date: Thu, 27 Nov 2025 15:11:04 -0500 Subject: [PATCH 2/2] Fix struct naming --- Sources/SolanaWalletAdapterKit/Deeplink/RequestTypes.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SolanaWalletAdapterKit/Deeplink/RequestTypes.swift b/Sources/SolanaWalletAdapterKit/Deeplink/RequestTypes.swift index f630025..3ea9e91 100644 --- a/Sources/SolanaWalletAdapterKit/Deeplink/RequestTypes.swift +++ b/Sources/SolanaWalletAdapterKit/Deeplink/RequestTypes.swift @@ -60,8 +60,8 @@ public enum MessageDisplayFormat: String, Encodable, Sendable { case utf8 } -extension TransactionOptions { - public init(sendOptions: SendOptions? = nil, encoding: TransactionEncoding? = nil) { +extension SolanaRPCClient.SendTransactionConfiguration { + public init(sendOptions: SendOptions? = nil, encoding: SolanaRPCClient.TransactionEncoding? = nil) { self.init( encoding: encoding, skipPreflight: sendOptions?.skipPreflight,